SysFileGetTime¶
This function of type BOOL returns the creation date, the date of last access and the date of the last modification of the file (which is identified by the file name). The used format is DT. You get these data by accessing elements of the structure FILETIME.
The return value is 1(ok) or 0 (error).
Input-Variable | Data Type | Description |
---|---|---|
FileName | STRING | File name |
ftFileTime | POINTER TO FILETIME | Points to the structure FILETIME; the operator ADR can be used for this purpose. |
The structure FILETIME is defined as follows:
TYPE FILETIME
STRUCT
dtCreation:DT; (\* Creation date \*)
dtLastAccess:DT; (\* Last access date; Attention: In VxWorks-systems possibly only day, without time! \*)
dtLastModification:DT; (\* Last modification date \*)
END_STRUCT
END_TYPE
Example
For the file ‘TestFile’ the creation date is read:
Ft : FILETIME;
filecreationtime : DT;