GetEOF
You can use the GetEOF function to determine the current logical end-of-file of an
open file.
FUNCTION GetEOF (refNum: Integer; VAR logEOF: LongInt): OSErr;
refNum
- The file reference number of an open file.
logEOF
- On output, the logical end-of-file.
DESCRIPTION
The GetEOF function returns, in the logEOF parameter, the logical end-of-file of the specified file.
RESULT CODES
| noErr | 0 | No error |
| ioErr | -36 | I/O error |
| fnOpnErr | -38 | File not open |
| rfNumErr | -51 | Bad reference number |
| afpAccessDenied | -5000 | User does not have the correct access to the file |