Hi,
I’m trying to save my file but even though my code works on corona simulator, it doesnt work when i test it on my ipad (iOS5.1)
my code :
local fullpath = system.pathForFile(fname, system.DocumentDirectory)
local file = io.open(fullpath, “w”)
print(“Try to write file @”,fullpath)
file:write(str)
file:close()
yet I always get this error :
main2_1121(10459) deny file-write-data /private/var/mobile/Applications/A17F4570-2312-441E-A4C7-EBA06860AABD/main2_1121.app/heroinit.xml
I’m using system.DocumentsDirectory just like what the tutorial says.
Anybody have the same problem as I am?
Thanks [import]uid: 76697 topic_id: 33207 reply_id: 333207[/import]
