finding Nth file on SD card ... works but only for a while

thanks for pointing me the problem !

i have found this that might be useful : The Evils of Arduino Strings | Majenko's Hardware Hacking Blog