I’m attempting to read a file from a directory within the resources directory of my app, and it… won’t work. I get a failed system.pathForFile() call on device. The directory is structured as follows:
[lua]
dirName
-> codefile.lua
-> config.json
[/lua]
As you can see, the directory has a Lua source file in it. Does this make Corona encrypt the contents of the directory during the build, thus making it unreadable? It seems to work when the config file is not in the directory.
Is there a way I can put config.json
inside the directory but still read from it? It has to be a JSON file, so I can’t just encode the properties as Lua and require() it.
- Caleb