Read CSV or TXT from SD card into string or array

Hi fat16lib, great solution to read a CSV, I need to output almost the same but I need to output a line once and never output it again.

I am using a CSV to load a list of "user" and "password" from a PC, then insert the SD card into the Arduino card reader, after push a bottom it will output on a LCD an unused line, the next time the push bottom it will press, it will give the next line.

I been thinking to use an extra file to save the last position read it and stop the while loop keeping that X,Y value for the display, after that the “index” file will be saved with an increment of the last position.
Do you have an advice to do so?

Thanks sorry for my English.