sd library using listfiles & ReadWrite

Hello to all arduino fans,

I have problem using listfiles & readwrite example of sd library.
I have in my sd card for example 3 files (1.txt,2.txt,3.txt).It reads the list files succesfully but when it reads the data of one file (for example 1.txt) in the next listfile call that file doesn't appears (show ONLY 2.txt,3.txt).

Please advice how to solve my problem.

Thanks
Nikos

This is a long standing bug On SD card I can not list files after writing to SD card - #3 by fat16lib - Storage - Arduino Forum.

Thank you fat16lib the seek(0) fix my problem.

Have a good day