GetResourceDirectory /File I/O

string GetResourceDirectory()

Returns the full path to the directory where the game is getting its resources from (with a slash at the end). The resource directory usually is the project root, where the *.ethproj file is and where all resources that are bundled with the original game application are.

string res = GetResourceDirectory();
string text = GetStringFromFileInPackage(res + "gameData/file.txt");

// prints file.txt content:
print(text);