My app has works fine in the corona simulator and has a clean build for iOS.
However after the build, i/o functions like reading a file from the documents directory are not working on the iphone device or xcode simulator. Has anyone seen this before? Any help appreciated. Thank you.
Here is my code-
local path = system.pathForFile( “answered.txt”, system.DocumentsDirectory)
local file = io.open( path, “r” )
local last_answer = tonumber(file:read( “*a” ))
io.close( file )