# CloseFile

int CloseFile (int fileHandle);

## Purpose

Closes the file associated with fileHandle. Call OpenFile to obtain a file handle.

## Parameters

Input
Name | Type | Description
fileHandle | integer | Specifies the file to close. This is the value that OpenFile originally returned.

## Return Value

Name | Type | Description
status | integer | Result of the close file operation. If this value is –1, an error occurred. You can use GetFmtIOError to get more information about the type of error that occurred. Any value other than –1 indicates the function completed successfully.