Need root directory for text file
I'm currently trying to load a text file from my games root directory, rather than having to give a full path to the function. My code at the moment is
However, I want the path to already be at the root directory so I don't have to use the full path name all the time. I have tried to use the FPath::GameDir() but can't seem to get it working. Is there a way to do this so that I can use that to show where my project is and then grab the text file from there?
asked Apr 08 '14 at 12:21 PM in C++ Programming
I must have bee doing something wrong somewhere stupid, checked again and made some other changes:
Here is my code anyway:
Which loads a file of strings on new lines into an array.
answered Apr 08 '14 at 02:44 PM
what is GameDir() returning? it works great for me :)
answered Apr 08 '14 at 01:47 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here