32 fr = open_append(&fil,
"logfile.txt");
33 if (fr !=
FR_OK)
return 1;
36 f_printf(&fil,
"%02u/%02u/%u, %2u:%02u\n", Mday, Mon, Year, Hour, Min);
FRESULT f_lseek(FIL *fp, DWORD ofs)
Seek File R/W Pointer.
FRESULT
File function return code.
File system object structure.
FRESULT f_close(FIL *fp)
Close File.
FRESULT f_mount(FATFS *fs, const TCHAR *path, BYTE opt)
Mount/Unmount a Logical Drive.
FRESULT f_open(FIL *fp, const TCHAR *path, BYTE mode)
Open or Create a File.