SysFileGetSize
(FUN)
FUNCTION SysFileGetSize : __XWORD
Get file size of the file specified by name.
A standard path will be added to the filename, if no path is specified.
- InOut:
Scope
Name
Type
Comment
Return
SysFileGetSize
__XWORD
Size of the file in bytes
Input
szFileName
STRING
File name. File name can contain an absolute or relative path to the file. Path entries must be separated with a Slash (/) and not with a Backslash (\)!
pResult
POINTER TO RTS_IEC_RESULT
Pointer to runtime system error code (see CmpErrors.library):
ERR_OK: Successful
ERR_NO_OBJECT: File not available
ERR_FAILED: Failed to get file size