fgets() does not handle 0x0d only Macintosh formatted text files In our use of fgets() (2023-11) using fgets with the esp-idf failed with mac formatted text files. The missing 0x0a LF character meant it did not detect the end of each line.
Documentation SD/SDIO/MMC Driver FAT Filesystem Support FatFs library API Support Good, startoff with the Espressif sample project as a way to get up and running writing and reading a card simply. Supports 1bit and 4bit SD card interfaces. Raw Access The API provides functions that can read and write sectors directly if you don’t want […]