May 2012
Intermediate to advanced
679 pages
16h 56m
English
Programmers tend to be optimistic. They feel errors will not occur in a program. However, a good programmer will not assume such a thing. When we work with files we should imagine what types of errors may occur and write such a code that takes care of them.
When we try to open a file either by associating with a file stream or using open function the operating system looks for the file in current directory. If the file does not exist it is clearly an error. The file opening operation fails.
This situation can also occur sometimes. You want to open a existing file, but you misspell it. (Let us assume that there is no ...
Read now
Unlock full access