View Single Post
  #8  
Old 12-11-2007, 11:16 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by Switch View Post
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.
__________________
Reply With Quote