Closes file. file must have been returned by a previous call to the openFile() function. If the file is successfully closed, this returns zero. If there is an error closing the file, this returns an OS-specific error code, and may write to the system messages log.
The precise behavior of this function are defined by the host operating system and file system.