View Single Post
Old Jun 15th, 2005, 5:07 PM   #2
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
One possibility is that the file didn't open for any number of reasons. Actually, that's why they provide tests for that eventuality. Presuming that everything is going to work (including user input always being valid) is a serious mistake often made by beginners. It's something to get over as rapidly as you can if professional coding is your goal.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote