Zen API
|
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.
file | File object. |