Author Topic: Text document commands?  (Read 624 times)

Im makeing a script that i could use this on. I have no clue what the errors are in it, which is why im here. Please fix it if you can. Heres the script:

%text = new scriptObject();
%text.openToAppend("Add-Ons/chat_c/test");
%text.writeLine("Test");
%text.close();

Also, could someone also post the rest of the functions that work with this?

Code: [Select]
%text = new fileObject();
%text.dump();
« Last Edit: August 15, 2010, 11:45:41 PM by herb »

FileObject, not ScriptObject

Don't try writing into a .zip file. I accidentally exported into a .zip, and it made some weird ass error I made a quick fix for. I don't know how to fix it, but it made some ghost file that doesn't exist, but is attributed to the .zip even if I remake it, and thus causes Blockland to error even though it's not there.