FileSetTime
Note: In order for this function to work, the file needs to first be opened in write or read/write mode.
Syntax
FileSetTime(File, iTime)
File:
The file number.
iTime:
The new file time, in the CitectSCADA time/date variable format.
Return Value
0 (zero) if successful, otherwise an error is returned.
Related Functions
FileOpen, FileClose, FileGetTime
Example
File = FileOpen("[data]:report.txt", "r+");
! set the file to the current time
FileSetTime(File,TimeCurrent());
FileClose(File);
See Also