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)