Quote:
Originally Posted by Switch
Well I don't really know that after the , does, can you tell me?
|
Whether to overwrite the file.
true appends, false replaces.
PHP Code:
temp.arr = { "foo" };
temp.arr.saveLines( "control/foo.txt", false );
Would replace whatever is in control/foo.txt with "foo".
PHP Code:
temp.arr = { "foo" };
temp.arr.saveLines( "control/foo.txt", true );
would simply add "foo" to the end of whatever was already in that file, or replace it if nothing.
Generally you want to replace, but for logs, append.