9 {
10 int year, month, day, hour, minute, second;
13 string datetimeUTC =
string.Format(
DATETIME_FORMAT, year, month.ToStringLen(2), day.ToStringLen(2), hour.ToStringLen(2), minute.ToStringLen(2), second.ToStringLen(2));
15
17 if (handle == 0)
18 {
19 errorMessage = string.Format("Cannot open file \"%1\" for writing", filename);
20 return false;
21 }
22
25
26 return true;
27 }
static const string DATETIME_FORMAT
static const string REPORT_FILE_NAME_TEMPLATE
proto void CloseFile(FileHandle file)
Close the File.
proto void FPrint(FileHandle file, void var)
Write to file.
proto FileHandle OpenFile(string name, FileMode mode)
Opens File.
proto void GetYearMonthDayUTC(out int year, out int month, out int day)
Returns UTC system date.
proto void GetHourMinuteSecondUTC(out int hour, out int minute, out int second)
Returns UTC system time.