V
volky
Guest
I am using a simple code to read the following file after pressing F11. The file is already imported into included files and exists in the working directory.
This is how the results looks like when I press F11:
Any ideas what I am doing wrong? The file is not empty and has some text in it: "%test,300,300,90".
GML:
q = file_text_open_read("room2.txt");
s = file_text_read_string(q);
show_message("!"+s+"! " + string(file_exists("room2.txt")));
if (s == "") { show_message("oops"); }
file_text_close(q);
Any ideas what I am doing wrong? The file is not empty and has some text in it: "%test,300,300,90".