Still a little unclear, especially on the selection business, but I think I get it.
But where does the "gid01_choise_value" fit in?
If I understand correctly, you want...
The text file contains both the questions in the first batch of lines,
with the last line of the batch being "exit", at least in this example,
and the rest of the textfile contains the answers to those questions.
You want this function to read the entire textfile into a non-visible location,
copy the first batch of lines (including the 'exit' line) into a text box called "text".
The entire text file will remain in the text box called "buffer" ,
and the temp.x contains the total number of lines stored in buffer,
and the temp.y contains the starting place of the answer to the first question.
Is this correct?
Can I change it a bit?
I want to make the textfile contain (without any numbers stored)...
The questions
The word exit
A blank line, so code knows where questions end, and answers start
The answers.
Output will still be the same as I stated in my understanding above.
Is this OK?