Thank you for helping. I fixed the (stupid) errors you pointed out, and simplified the sketch to remove all references to the display (attached). It should now open the file, read repeatedly into the buffer, then close the file, moving on to the next.
When I run the attached sketch, it will open and print the names of the files up to some random file, then will print file error and return 0. So there is apparently some problem with
I tried setting the SPI speed to half and quarter, and used the SdFat formatting tools to reformat the card, with no joy. Am I using the open command correctly? Could it be the card? (2GB, 50X Kingston brand) I commented out the section to stop the sketch if a file did not open, and learned that once open fails, it will not work again.
Thanks again for help.
testReadSd.ino (1.47 KB)