Wave Shield Adafruit - Play next song and previous song

I was wondering if you knew a way to make the size of "String filenames[]" dynamic ?

malloc().

But, you DO need to know the size.

You could scan the card twice. Count the files on the first pass. Copy (strdup()) the names to a char * array, NOT a String array, on the second pass.