Game Development Community

FileObject openForRead problem

by JuanMa · in Technical Issues · 05/05/2006 (11:40 am) · 1 replies

I have been having a problem with the FileObject. Whenever I try to open for read it returns false, I assume I am using the wrong path to the file name, but I have tried all different paths and it still doesn't work.

Here is my code
%level_file = new FileObject();
	
	if (!%level_file.openForRead ( "./.../scripts/lvl_one_bots.txt" )){
		echo($CreateBotsError[ $UNABLE_TO_READ ]);
		return;
	  }
Anyone have any idea why this is happening?


Thx

Juanma

#1
07/03/2006 (5:39 pm)
Posting: Unread posting for more than 30 days. I am posting to help get a reply to your un-answered question.