Hi All
I am creating file in my app on the simulator and when the app is running I am going to FILE > SHOW PROJECT SANDBOX and when I look in the Documents folder there is nothing there. My app is telling me the file exists. I am creating the file thus:
local fname = system.pathForFile( "layers.cplus", system.DocumentsDirectory ) if fname == nil then fh = io.open(fname,"w") fh:write(layerTemplate) io.close(fh) local alert = native.showAlert( "File Created!", "But where?",{ "Carry On"}, onComplete ) else local alert = native.showAlert( "File Exists!", "But where?",{ "Carry On"}, onComplete ) end
Shouldn’t the file “layers.cplus” be in the documents sandbox?
Peace Out
Peter
fname is never nil :-/