FUNCTION SysFileEOF : RTS_IEC_RESULT
Check, if end of file is reached
Note
End of file is only checked after a read operation with SysFileRead! But after a SysFileWrite or SysFileSetPos call, the function returns ERR_FAILED (no end of file)!
InOut:
|
Scope
|
Name
|
Type
|
Comment
|
Return
|
SysFileEOF
|
RTS_IEC_RESULT
|
Returns the runtime system error code (see CmpErrors.library):
|
-
ERR_OK: End of file reached at reading beyond the end of the file
-
ERR_FAILED: No end of file reached
-
ERR_PARAMETER: hFile is invalid
|
|
Input
|
hFile
|
RTS_IEC_HANDLE
|
Handle of the file
|
|