hm now I got another problem:
I want that str_main and str_pointer will be compared and if it's the same, the engine should exit.
I have also a unicode text file wich includes just "NULL", named file.txt.
Can anyone help me with this?
It have to be unicode, because I need special letters.
#include <acknex.h>
#include <default.c>
FONT* fontArial = "Arial Unicode MS#30";
PANEL* panel=
{
pos_x=0;pos_y=0;
flags=SHOW;layer=3;
}
STRING* str_main;
STRING* str_pointer;
function main()
{
str_main = str_create("");
str_pointer = str_create("NULL");
//---------------------------------------------
var file = file_open_read("file.txt");
file_str_readtow(file,str_main,NULL,5000);
if(str_cmpni(str_main,str_pointer)==1){sys_exit("");}
file_close(file);
//----------------------------
pan_setstring(panel,0,0 ,0,fontArial,str_main);
pan_setstring(panel,0,0,20,fontArial,str_pointer);
}