Hi all,
I am trying to include a text file (about 5MB) into the project. It will be read only. How can I access the file?
I tried:
local path = system.pathForFile( "myfile.txt", system.DocumentsDirectory ) local file, errorString = io.open( path, "r" )
but it didn’t find the file.
Also, if I want to do a search in the file (assuming the file is in alphabetical order) would I read it sequentially or am I better using a seek function to speed things up? (i.e. does a seek function speed things up or does it search sequentially as well)
Finally, am I better putting it in a lua file as a table? Would that use too much runtime device memory?
Many thanks.