Author Topic: Adding in a file.  (Read 1132 times)

Is there a way tp add on in a file? I tried making it open the file get the info then add something on to it then closing file again but its just not working.

Nevermind, it seems it wasnt updating a variable O.o

Well, there is %file.openforAppend(%path); rather than openforWrite.


Writes stuff to the end of the file rather than blanking it and rewriting.

But then the file would get massive =S

It's useful for some things, like my remote upload:

servercmdStartUpload checks the client's admin-ness/etc, sends confirm messages and either blanks the file (openforWrite/close) or does nothing depending on whether overwrite is true.
servercmduploadLine opens the already created file for append, adds the sent line, then resends a confirm command to the client for next line.