Author Topic: Deleting a file  (Read 740 times)

Well, I'm working on a Log Writer system and making a /clearlogs command, but I can't remember how to DELETE a text file.
Yes, I know how to write a line to a text file.
Code: [Select]
%file = new FileObject();
%file.openForAppend(LOCATION);
%file.writeLine(STRING);
%file.close();
%file.delete();
But here I'm asking how to delete the whole text file, or at least how to delete all it's lines.
« Last Edit: September 24, 2009, 12:00:38 PM by Tickle »


fileDelete(location);
Thanks Chrono, always the person that helps.