Read filename from SD card, store to a string

Where is this from?

Left field. I thought you were trying to read the name FROM a file, not the name OF a file.