I have a simple text file like this:
--------------------------------------------
Will you rap on the door?
357
Will you pull the cord?
275
or creep around the house to investigate the light?
289
--------------------------------------------
How do I parse the file so the text is displayed on screen while the numbers are held as a value so that when the user clicks on an option I can return the number for that option?
Basically, user clicks an option, program knows the number (under each option) for that option?
I don't need to know how to display the text, just how to load the text into 3 sets of alterable strings and the numbers into alterable values.
I'm trying to use the String Parser object (with RETURN/ENTER as the delimiter) but I'm not sure how to get a particular string / number from a file. Any help would be appreciated, thanks. :)
