You are currently viewing the documentation for:
ECF_CloseFile
ECF_CloseFile closes an open file handle.
ECF_ErrorCode ECF_CloseFile(
   struct ECF_FileHandle *pFileHandle
);
Parameters
pFileHandle
The pointer to an open file handle.
Return value
Returns one of the EcFAT error codes (ECFERR_SUCCESS on success)
Remarks
Note: If you have opened a file in read/write mode, EcFAT will often write to the block device when a file is closed. Since this might fail, it is important to check the error code even when you close the file.
Example Code
See example for ECF_OpenFile()
See also