Syntax
FILE....(<error>,"<file name>",<result>)
Meaning
FILEDATE
FILETIME
FILESIZE
FILESTAT
FILEINFO
<error>
Job Planning
Programming Manual, 03/2013, 6FC5398-2BP40-3BA1
1.22 Read out file information (FILEDATE, FILETIME, FILESIZE, FILESTAT, FILEINFO)
:
Returns the date of the last write access to a file
:
Returns the time of the last write access to a file
:
Returns the current size of a file
:
Returns a file with regard to the following rights for the status:
r: read
w: write
x: execute
s: show
d: delete
:
Returns the sum of the information for a file that can be read out via
FILEDATE
:
Variable for returning the error value (call-by-reference parameter)
Type.
Value:
,
,
and
FILETIME
FILESIZE
VAR INT
0
No error
1
Path not allowed
2
Path not found
3
File not found
4
Incorrect file type
13
Insufficient access rights
22
String length of the result variable (
small.
Flexible NC programming
FILESTAT
<result>
) is too
151