I am trying to do some file reading, but I am getting some errors with this code. I need some help on how to get it working for me.
Code:
////////////////////////////////////////////////////////////////////
var video_mode = 7; // 800x600 pixels
var video_depth = 32; // 32 bit mode
////////////////////////////////////////////////////////////////////
string work02_wmb = <work02.wmb>;
////////////////////////////////////////////////////////////////////
///The code down below is the code that is causing me problems....
string test_str[8];
var fhandle;
fhandle = file_open_read("C:/Documents and Settings/Chris/Desktop/OREO/test.txt");
file_str_read(fhandle,test_str);
file_close(fhandle);
////////////////////////////////////////////////////////////////////
text collision_txt
{
pos_x = 10;
pos_y = 10;
font = _a4font;
string = test_str;
flags = visible;
}
/////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////
function main()
{
level_load (work02_wmb);
}