I have been trying to read a JSON/XML or simple text file in Lua language for Corona SDK with little to no success. All the tutorials I followed, people were basically writing a file and then reading in, this way the file created lands up in corona Sandbox not and file is not accessible by developer as far as I know.

What I was trying to achieve was to paste an externally made file somewhere into the root directory and have my Lua code read it and bring the text elements into my game instead of hard coding texts.

If anyone has any knowledge or experience regarding this kindly please enlighten me as I am stuck here for a couple of days now.

  • \$\begingroup\$ You'll probably get better answers if you show us the code you're using to try to read this file, and how the results so far are deviating from what you need. \$\endgroup\$ – DMGregory Nov 3 '19 at 12:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.