If the above is OK, then try this
Code:
text buffer = { strings=25; }	//absolute maximum number of lines in a text file EVER

function getText()
{
	temp.x = txt_load(buffer, "text/test.txt");
	temp.y = 0;
	while(temp.y<temp.x)
	{
		if(str_len(buffer.string[temp.y])==1)
		{	temp.y+=1;		break;			}
		str_cpy(text.string[temp.y], buffer.string[temp.y]);
		temp.y += 1;
	}
	//temp.x is number of lines in the "buffer" text-object
	//temp.y is the first answer line. ie "buffer.string[temp.y]" is the first answer
}

and a sample text file is
Code:
test question 1
test question 2
test question 3
test question 4
exit
.              <<<<<Tis line HAS to be ONE character long
answer 1
answer 2
answer 3
answer 4


Last edited by EvilSOB; 06/10/09 19:22.

"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial