So if you’re trying to get a file from your computer in C++, you should be able to write something like this:
FFileHelper::LoadFileToString(SaveTextA, *"e:/drive/temp/text/textfile.txt";)
And just get the file directly, instead of using FPaths
. The point of FPaths
is to help you get files from common places on any computer, regardless of installation location. If you know your file will always be at “e:/drive/temp/text/textfile.txt” then you could use what I posted above. Although you should know that using hard-coded absolute paths like that usually isn’t a good idea, especially when it is not even on the C: drive.