wave sheild question

I am now 2 days old with Arduino! I am trying to play 8 different sound files with Wave Shield. Here is the code I'm using:

void ls() { // looking for files char name[13]; int ret;

card.reset_dir(); putstring_nl("Files found:"); while (1) { ret = card.get_next_name_in_dir(name); if (!ret) { card.reset_dir(); return; } Serial.println(name); } }

How do I alter this code to find specific file names? Another way to ask this question: which part of the code identifies the specific files being played? thank you!

The variable name contains the name of the file being played. It is populated by the card.get_next_name_in_dir function.