I have tried many many different ways to get this to work but none have provailed. I simply want to open a file so that I can write, and read from it. So far the writing works perfectly, but no matter what I try, the reading has ALWAYS failed. Below is the code I have finally ended up at, which does not work. What am I doing wrong?
user = get_string("Enter username:","");
map = file_text_open_write(user +".txt");
contents = file_text_open_read(user +".txt");
show_message(file_text_readln(contents));
EDIT: error message reads "Error opening file for reading."
Regards,
Tzunami
Edited by Tzunami, 01 April 2012 - 04:10 AM.











