View Single Post
  #2  
Old 07-21-2007, 07:49 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
PHP Code:
temp.log = "Bob used a tool around 9 o'clock";
temp.file2 = 0;

temp.file.loadstring("path/to/file/name_here.txt");
if (
file.length() > 0) {
  
file2 = file, file2 @= "," @ log;
  
file2.savestring("path/to/file/name_here.txt", 0);
}else 
log.savestring("path/to/file/name_here.txt", 0); 
didn't test it, but I think it should work

I think there are some in-built ones, will edit post when I find them
E:

PHP Code:
savelog(str)
savelog2(str, str) 
__________________
Reply With Quote