Is there any reason the File class shouldn't work when the game is exported?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By mbalint
:warning: Old Version Published before Godot 3 was released.

I would like to open all txt files in a directory.
I use the Directory class to find them and it lists all files perfectly. But when I try to open them with the file class, it says it can’t find the file. Neither open or file_exeists can see them. I added the *.txt filter and even selected export all files in project folder in the export settings.
All of this works well in the editor.
I am using the latest stable 2.1.4 version on windows

Could you post the code?

avencherus | 2017-10-28 02:27