用fopen打开文件总是返回NULL,不管文件是否存在,都返回NULL
FILE *wp = fopen("/a.txt","w");
或者
FILE *wp = fopen("/a.txt","r");
都不好使
确定flash已经关在到/了
IDF中如何读写文件?
Re: IDF中如何读写文件?
Have you mounted fatfs before calling fopen? If yes, please make sure that the file you are opening is under the mount point. For example, if fatfs has been mounted to /data, the file path has to be /data/a.txt.
Who is online
Users browsing this forum: No registered users and 68 guests