hi every body
I wanna write into a file for logging purpose, but I always got an error when
I write to the file ...
the code is:
--------------------------------------------------------
if(!logFile.isOpen)
logFile.open("text", "write")

var date = new Date();
if(logFile.canWrite){
trace(">> I will write ...");
var message = "TIME >> " + date.getDate().toString() + " : ERROR CODE >> " +
infoObject.code + " : LINE NO >> " + infoObject.lineno.toString();
logFile.write(message);
logFile.flush();
}
logFile.close();
--------------------------------------------------------
I got an error says: File operation writeln failed
and also may say: File operation flush failed

thanx