CloseFile

The CloseFile function closes a file that has been opened with a call to OpenFile. You cannot read from or write to a file after you close it.

Syntax

CloseFile ( nvFileHandle );

Parameters

CloseFile Parameters

Parameter

Description

nvFileHandle

Specifies the handle of the file to be closed.

Return Values

CloseFile Return Values

Return Value

Description

0

Indicates that the function successfully closed the file.

< 0

Indicates that the function was unable to close the file.