Go Down

Topic: SD.open() filepath only accepts 12 characters? (Read 3923 times) previous topic - next topic

nkaati

http://arduino.cc/en/Reference/SDopen

When I used
File dataFile = SD.open(filepath, FILE_WRITE);

it only writes to the SD card if the filepath < 12 characters total

Is there a way around this, or is there something wrong?

fat16lib

SD.h only supports DOS style 8.3 names.  A path can be longer than 12 characters but each segment must be a 8.3 name.

See http://arduino.cc/en/Reference/SD

nkaati


Go Up