![]() |
#6 |
Участник
|
Я пользую такую процедурку
X++: static server boolean ToFile(anytype _string, str _mode = 'A',Filename _file = "") { Filename fileName = xInfo::directory(DirectoryType::Config) + '..\\..\\log\\' + curuserid() + '-info2File.txt'; str toFile = strFmt("%1 [%2] '%3'", systemdateget(), time2str(timenow(), 1, 1), _string) + '\n'; AsciiIo file; ; file = new AsciiIO(fileName, 'A'); if (file.status() == IO_Status::Ok) { file.write(anytype + '\r\n'); return true; } return false; } |
|