|
5/25 |
2000/3/24-25 [Computer/SW/Languages/Java] UID:17844 Activity:low |
3/24 newbie programming question: If I try and create an ofstream object and it fails, how do I find out why? Can I use errno or do I have to do something different? Basically I want to know how to fill in the fragment below: ofstream outf(fileName); if (! outf) { // print an error message indicating why we failed // for fopen I could use perror("open failed because:"); } // thanks \_ ofstream::error() \_ which class is this for? |
5/25 |
|