I have a file in my root folder called menuItems.json.
When I deploy to my windows phone I cannot access the file, I get an error about the file not found.
If I test in the ( corona simulator ) I can access it just fine.
I would copy it to the phones system.DocumentsDirectory folder but I cannot open / read it in order to copy it there.
how can I use Corona to open my file?
Like I said he code runs on in the normal Corona Simulator so it something about the device.
this is how I am trying to get the file path for the file
local srcPath = system.pathForFile( “menuItems.json”, system.ResourceDirectory)
print(srcPath ) - prints a nil
Yes the file is in the same location as the main.lua - specified in Corona Docs.
- and just think I was showing off my app on a windows phone - AT MICROSOFT - help please
Thanks in advance.
Larry