A
Alex Vinokur
-------------------------------
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:[email protected]
http://mathforum.org/library/view/10978.html
=====================================
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:[email protected]
http://mathforum.org/library/view/10978.html
=====================================