AnsweredAssumed Answered

fatfs create file in directory

Question asked by eb3484 on Dec 14, 2016
Latest reply on Dec 14, 2016 by Clive One

Hi,

I am using fatfs sdcard stack, how can i create file in a directory? can i use f_open function for this? In f_open function i just specify the name of the file like this:

f_open(&MyFile, "STM32.TXT", FA_CREATE_ALWAYS | FA_WRITE)

How can i add the directory path?

Outcomes