Nooooo, nonononono
That is not how troubleshooting works. All you know is that, if you hardcode the sound file, it works. You don't know the following:
is the textfile being read
is it being read correctly
What is being returned when you call fgets
To sum it up, you don't know quite a lot