Boost logo

Boost Users :

From: Lisa Glendenning (lisa_at_[hidden])
Date: 2005-08-17 15:02:35


Hello,
I just recently began using the boost iostreams library, and I can't
figure out a way to see if a file has been successfully opened. E.g., I
would like to reproduce this behavior:

std::ofstream file("filename");
if(!file) {
// error opening file
}

Thanks,
Lisa Glendenning


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net