Z
zhou
Hi there,
I got an error when writing to a file via ofstream. Is there a way to get detailed reason for the error?
iosstate only has bad and good bits, no good enough to tell me what went wrong.
ofstream fs;
fs.open("aaa");
if ( fs << ....) {
// error
}
Thanks.
Yan
I got an error when writing to a file via ofstream. Is there a way to get detailed reason for the error?
iosstate only has bad and good bits, no good enough to tell me what went wrong.
ofstream fs;
fs.open("aaa");
if ( fs << ....) {
// error
}
Thanks.
Yan