Function f_close closes a file.
FRESULT f_close ( FIL* FileObject // Pointer to the file object structure );
Function f_close closes a file. If any data has been written, the cached information of the file is written back to the disk. When the function succeeded, the file object is no longer valid and structure can be discarded.