Exception Handling
When ever you deal with IO you need make sure the file creation was successful accessing the files.
So enclose creation of file object and stream object within try and catch.
See Lab4 for example.
Previous slide
Next slide
Back to first slide
View graphic version