So I'm trying to create a new file that has underscores in its name. However, when I try this, no file is created.
This works
String fileName = "NMEA.txt";
mySensorData = SD.open(fileName.c_str(), FILE_WRITE);
This does not work
String fileName = "NMEA__23_33_3__16_7_29.txt";
mySensorData = SD.open(fileName.c_str(), FILE_WRITE);
Does anyone know why?
1 Answer 1
[The SD library] uses short 8.3 names for files.
answered Jul 29, 2016 at 23:55
-
Do you have any tips on how I can organize my files then? As you can see in the above format, I have it as NMEA__hr_mn_ss__yr_mm_dd.txt.jlcv– jlcv2016年07月30日 00:21:29 +00:00Commented Jul 30, 2016 at 0:21
-
I tried
String fileName = "/23_33_3/16_7_29/NMEA.txt"
to organize it by directory and it doesn't seem to create them.jlcv– jlcv2016年07月30日 00:22:18 +00:00Commented Jul 30, 2016 at 0:22 -
Have you actually created those directories? It won't magically make them for you...Majenko– Majenko2016年07月30日 09:53:05 +00:00Commented Jul 30, 2016 at 9:53