Noob question regarding reading files…
I created a text file using TextEdit and named it settings.txt in the same folder as main.lua
If I have:
local path = "settings.txt"
local file = io.open( path )
and I run this in the simulator then file is returning nil.
I’ve tried this too:
local path = system.pathForFile( "settings.txt", system.DocumentsDirectory )
local file = io.open( path )
and I get the same result.
Do I need to locate my somewhere “special” or do I need to create it in a certain way, set permissions, etc.
Help! [import]uid: 8353 topic_id: 2252 reply_id: 302252[/import]