|
From: Abhijit S. <mu...@gm...> - 2002-07-30 21:20:40
|
> Ah, but Obj has two data members, which are a text string (which details
the
> precise error) and an integer (which is the error code). SetErrorLog()
> outputs this information to a text file.
I still don't get it... won't this do?
void Exception::SetErrorLog()
{
ofstream f("log.txt");
f << text_string << endl;
f << "Error-code " << err_code << endl;
}
|