Hello,
I have a file which is full of questions and answers. The way it is formatted is a question line and then the next 4 lines are possible answers. The correct answer has an * in the text. How can i take this text file that I downloaded to the device and loop through the lines adding them to the array?
I want them in an array like this format below:
local myArray = {{“question”,“answer 1”,“answer2”,“answer3”,“answer4”}, next line, etc. }
The text file will be like this:
Question
Answer1
Answer2
Answer3
Answer4
Question
Answer1
Answer2
Answer3
Answer4
etc.
Thanks for your help!
Warren