AIT_FileEOF

Description

Checks whether the file pointer has reached the EOF.

Format

integer AIT_FileEOF (
 integer nFileHandle     // File handle
);

Parameters

nFileHandle (input)

Specify a file handle.

Return values

The return value is 1 if the file pointer has reached the EOF, and 0 if not. If the function has not been executed, the return value is -1. If -1 has been returned, you can use AIT_GetLastError to acquire an extended error code. The following gives the error codes that AIT_GetLastError might return:

Extended error numberError code
5ERROR_ACCESS_DENIED
6ERROR_INVALID_HANDLE
8ERROR_NOT_ENOUGH_MEMORY
14ERROR_OUTOFMEMORY
21ERROR_NOT_READY
32ERROR_SHARING_VIOLATION
33ERROR_LOCK_VIOLATION
112ERROR_DISK_FULL
148ERROR_PATH_BUSY
1231ERROR_NETWORK_UNREACHABLE
1392ERROR_FILE_CORRUPT