use file_str_read to read your text from txt file :

Code:
#include <acknex.h>
#include <default.c>

STRING* texttest = "";
TEXT* mytext =
{
	string =texttest ;
	pos_y = 10;
	flags = SHOW;
}
function main ()
{
	var fhandle = file_open_read("my text.txt"); // test.txt contains "this,is,a,test"
	file_str_read(fhandle,texttest); // sTest now contains "this"
	file_close(fhandle);	
   fps_max = 60;
        mytext.pos_x =screen_size.x+10;
	while(1)
	{
		mytext.pos_x -=1;
		wait(1);
	}
	
}


Last edited by Dico; 05/07/13 08:55.