In my game I am reading some data from text file. I store it in “Content/Data/” directory and access it through path: FPaths::GameDir() + FString(“Content/Data/unlocks.dat”)
FFileHelper::LoadANSITextFileToStrings(*(FPaths::GameDir() + FString("Content/Data/unlocks.dat")), NULL, lines);
Everything is working fine when I’m playing inside editor, but when I package the project, my game is unable to load the this file. Is it even added to the .pak file beign created? If it is, how do I access it? I want to have it in .pak file because I don’t want users to modify it(At least not easily :D).
How should I deal with this situation?