Read filename from SD card, store to a string

PaulS:
That pointer will be overwritten when the next file is accessed. If you are creating a list, you need to copy the data.
SRAM.

Which is fine in this case. ls() just streams out the data. Maybe if I want to have a utility to select a file though, I can see where I may need to create a static array of pointers. Although that wont help if its just putting the filename in a buffer. Honestly its probably not that process intensive just to go back and read it every time needed instead of allocating some huge buffer that there is no room for.

With my application the user can only be shown so much information at a time anyhow.

I'm not sure about pointers to pointers right now, but pointers to functions may start to come in handy once I create mkdir(),cat(),rm(),cd(),cp(),mv() and so forth.