Author Topic: Removing all the text from a certain file  (Read 567 times)

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

For saving systems and such, I mean.

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

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.

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

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

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

Hey, while you're still coming around this topic: You think, sometime, whenever you have time, you can update Macro Saver's code? I did my own update to use fileDelete, but I know you'd do a much better job than me. Adding fileDelete helped loadtimes on the GUI since it didn't have to open each file three times for checks.
« Last Edit: September 24, 2010, 10:15:51 PM by MegaScientifical »

Hey, while you're still coming around this topic: You think, sometime, whenever you have time, you can update Macro Saver's code? I did my own update to use fileDelete, but I know you'd do a much better job than me. Adding fileDelete helped loadtimes on the GUI since it didn't have to open each file three times for checks.
A while back I made a test "color match" thing for the macro saver which worked quite well, but I don't remember whether it was officially added.

A while back I made a test "color match" thing for the macro saver which worked quite well, but I don't remember whether it was officially added.

I don't believe so... But then again, I was focusing on making it load faster because I had some huge macros from the converter and Blockland was crying for loading them.

But ya, put that in, too, if it isn't!