fopen()不能打开文件后缀名大于3字节的文件
Posted: Thu Jul 13, 2023 4:50 pm
- #include <sys/unistd.h>
- #include <sys/stat.h>
- #include "esp_vfs_fat.h"
- #include "sdmmc_cmd.h"
- const char *_file = "/sdcard/hello.abcd";
- FILE *f = fopen(_file, "wb");
- if (f == NULL) {
- ESP_LOGE("file test", "Failed to open file for writing");
- return;
- }
是历史遗留问题吗?有没有解决方法呢?