-------------------------------
ifstream fin ("foo.txt");
if (!fin) cout << "Warning: Unable to open file" << endl;
-------------------------------
There are several reasons for getting that warning :
* foo.txt doesn't exist
* foo.txt exists but is busy
* etc.
Can ifstream know why it is unable to open the file?
=============== =============== =======
Alex Vinokur
mailto:alexvn@c onnect.to
=============== =============== =======
ifstream fin ("foo.txt");
if (!fin) cout << "Warning: Unable to open file" << endl;
-------------------------------
There are several reasons for getting that warning :
* foo.txt doesn't exist
* foo.txt exists but is busy
* etc.
Can ifstream know why it is unable to open the file?
=============== =============== =======
Alex Vinokur
mailto:alexvn@c onnect.to
=============== =============== =======
Comment