chapter  Chapter 10
17 Pages

Real-World Scenarios: Reading Files

WithJerome DiMarzio

In Scenario 1, we examined the process of opening files. However, now that the files are open, what should you do with them? Do not assume that once you get past opening the file you are in the clear. In fact, just as many problems can occur once the file is successfully opened as can occur during the process of opening the file.