THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 25/02/2004 at 16:01, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 8.100
Platform:
Language(s) : C.O.F.F.E.E ; XPRESSO ;
---------
Hello! Could someone tell me why this fails? I named this code snippet, "test.cof" and put it in a folder called "test" in the c4d plugin folder.
main()
{
var path = GeGetStartupPath();
path->RemoveLast();
path->AddLast("test.txt");
if (GeFileExist(path,FALSE))
{
var filename = GeGetRootFilename();
filename->RemoveLast();
filename->Add("text.txt");
var testFile = new(BaseFile);
testFile->Open(filename, GE_WRITE);
testFile->WriteString("Hello World!");
}
}
The file does not get written, and the console displays no errors
Thanks