AIT_FileClose

Description

Closes a file handle.

Format

bool AIT_FileClose  (
 integer nFileHandle     // File handle
);

Parameters

nFileHandle (input)

Specify a file handle you have opened using the AIT_FileOpen function.

Return values

The return value is true if the function was executed normally, and false if not.

If the function has returned false, 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
2ERROR_FILE_NOT_FOUND
3ERROR_PATH_NOT_FOUND
4ERROR_TOO_MANY_OPEN_FILES
5ERROR_ACCESS_DENIED
6ERROR_INVALID_HANDLE
8ERROR_NOT_ENOUGH_MEMORY
14ERROR_OUTOFMEMORY