Loading files, even those related to your own project has be done via the networking objects. For instance, if you want to load and display a text file you would do the following:
- Add the textfile to your project as a resource file
- The file will be stored in “res/[yourfilename]” when you compile the project
You can now use the TW3HttpRequest object to load the file. Simply follow the instructions on how to use the TW3HttpRequest, and replace the URL with: FHttp.Get(‘res/somefile.txt’) to load in a textfile (for instance).
Use the snippet feature in the ide to re-use your solution