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
}