THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 25/09/2008 at 08:23, xxxxxxxx wrote:
User Information:
Cinema 4D Version: R11
Platform: Windows ; Mac OSX ;
Language(s) : C.O.F.F.E.E ;
---------
Hi there.
I'm able to Write a new file into and read from UserPrefs.
(The first commented part)
But, I'm not able to figure out how to delete (erase from disc).
What I have is the code below. I figure the GeKillFile() should be
the route but I most likely miss something here.
I do get the Yes and No printouts depending on if the name is
correct or not.
Cheers
Lennart
> \> /\* \> var fn = GeGetStartupWritePath()->Add("DAFILE.txt"); \> var file = new(BaseFile); \> \> { \> file->Open(fn,GE_WRITE); \> if (file) \> { \> file->WriteString("12345"); file->Close(); \> } \> } \> \> file->Open(fn,GE_READ); \> var code = file->ReadString(file->GetLength()); \> println(code); \> \*/ \> \> var fn = GeGetStartupWritePath()->Add("DAFILE.txt"); \> var is = GeFileExist(fn,FALSE); \> if(is) \> { \> println("YES and KILL It!"); \> GeFileKill(fn,FALSE); \> } \> else println("No such file, hold your guns"); \>