[source lang="cpp"]fgets(file, "%d\n", &locsToGo[t]);[/source]
to load the a string into locsToGo instead of an int.
The declaration of locsToGo would be:
[source lang="cpp"]#define FILENAME_LEN 10char locsToGo[100][FILENAME_LEN];[/source]
Hope this helps and good luck with your text game.

Find content
Not Telling