How do I know the path to the file in the Blender Game Engine?
Have you looked at the right console?

You need to start the game with option -c to see the console window of the game.

When you do not see the game's console you might have looked at the console of the still opened Blender.

In my test the path was correctly pointing to the location of the game's folder.