Hi,

I want to read out of a *.txt file. The manual tells, that I have to give a handle and a string:
file_str_read (handle, string)
My Code:
string save_nr;
var_nsave fhandle_save;
...
fhandle_save = file_open_read("save.txt");
file_str_read(fhandle_save, save_nr);

The "save.txt" file is simply 1 character: "1"
When I start the game, I get an error: "Read-only save_nr"
Can I use a variable and not a string?

Animorphs


_______________________________________________ GameStudio 6 Extra Edition Processor: 2.80 Ghz RAM: 2046MB Graficcard: Radeon X600 256MB DOWNLOAD PONG FIGHT