// legacy usage
// var temp[3];
TEXT txt {
//font = ?;
pos_x = 0;
pos_y = 0;
layer = 1;
strings = 32;
flags = VISIBLE;
}
TEXT txt_buffer { strings = 255; } //this IS invisible
function main() {
temp.x = txt_load(txt_buffer, "file.txt"); // load STRINGs from file
// temp.x is number of STRINGs loaded
//
temp.y = str_len(txt_buffer.string[temp.x -1]); // access nth STRING, last STRING
//
// copy first 5 lines to the screen
temp.z = 0;
while(temp.z < 5)
{
str_cpy(txt.string[temp.z], txt_buffer.string[temp.z]);
//or str_cpy((txt.string)[temp.z], (txt_buffer.string)[temp.z]);
temp.z = temp.z + 1;
}
}