Blockland Forums > Modification Help

Removing all the text from a certain file

Pages: (1/2) > >>

otto-san:

I'd like to know how to completely clear a file to be able to rewrite it.

For saving systems and such, I mean.

otto-san:

could i just use stripchar for all the characters  :cookieMonster:

MegaScientifical:

Write the file instead of appending it. Look at Macro Saver, the code is before fileDelete, so he clears files to delete them in there.

Ephialtes:

Using openForWrite will clear the file anyway - there's no need to delete the contents first.

otto-san:


--- Quote from: Ephialtes on September 24, 2010, 05:16:30 AM ---Using openForWrite will clear the file anyway - there's no need to delete the contents first.

--- End quote ---
alright, thanks

Pages: (1/2) > >>

Go to full version