You can use this:
Code:
v_data = 0;// randomly this variable in a fonction and call read_help
v_loop_help =0;
var filehelp;
function read_help ()
{
filehelp = file_open_read (filehelp_str);// open file
while (v_loop_help < v_data)
{
file_str_read (filehelp, help1_str);
v_loop_help = v_loop_help + 1;
}
file_close (filehelp);
v_loop_help =0;
v_data = 0;
return;
}
in the text file I wrote words or sentence the one underneath other one
first line: I like 3DGS
seconde line: oups!
third line: 3DGS rules
if v_data =1 help1_str= I like 3DGS
if v_data =2 help1_str= oups!
if v_data =3 help1_str= 3DGS rules
etc....