Error when SD card contains more than 10 files

wildbill:
You're using openNextFile in four functions. In two of them, you close the file as per the example code. In the other two, you don't which I suspect is a problem. Use of String objects isn't helping either.

That was it! A quick fix, thanks for answering.