I am unable to open more than one file at a time on the 4.1 using the builtin SD card and SD.h and haven't found any clues in the example code provided. This means things like recursion through file handles to list files on the card, etc. isn't possible.
Code like below fails because tmpFile2 can't be opened:
Any suggestions please? Thanks.
Code like below fails because tmpFile2 can't be opened:
Code:
File tmpFile1, tmpFile2;
tmpFile1 = SD.open("/");
while ( tmpFile2 = tmpFile1.openNextFile() ) {
// ...
tmpFile2.close();
}
Any suggestions please? Thanks.