function FileWrite(filename, text )
{
local file_text, file_handle;
file_text = text + "\r\n";
file_handle = file( filename, "a+" );
foreach ( idx, chr in text ){
file_handle.writen( chr, 's' ); }
}
FileWrite("Logs/Stats.txt", "hello");
Btw its edited Windlord `s script.