Boost logo

Boost Users :

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

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

Lisa Glendenning

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at