Hi,
I have recently been experimenting with text files but this bit of code, when executed, just crashes the game.
function testFO()
{
%fo = new FileObject();
%fo.openForRead("config/test.cs");
while(!%fo.isEOF)
{
%line = %fo.readLine();
echo(%line);
}
%fo.close();
%fo.delete();
}
Could someone please explain what is wrong with this?