FileIn in(...);
if(in) {
// in was succesfuly opened
}
Actually, IsError is usually used at the end of write operation to find out whether always was written OK (e.g. there is enough capacity on target media, like:
FileOut out(...);
if(out) {
...write the stuff
if(out.IsError())
Exclamation("Error writing the file !");
}