Zen API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
kStatus kFile_Close ( kFile  file)

Performs any outstanding I/O operations and closes the underlying file.

The purpose of the Close method is to provide an opportunity to finalize I/O and report any errors before destroying a file object. If the Destroy method is called without having closed the file, the Destroy method will close the file and ignore any errors.

The Close method should only be called once per file object. After calling the Close method, any operations other than Destroy will produce undefined results.

Parameters
fileFile object.
Returns
Operation status.