EXAMPLE:

(from Dr Chris Lokan's webpage. Full Bibliographic Reference)

Safe I/O


So, we can see this is a very generic way to do this. But what if there are a number of possible things that could have gone wrong? This example shows possible exceptions when attempting to read from a file.

exception




Back to the Presentation
The End. This compilation of notes was written by Jared Seaman, 5/6/99.