CSE143

Project 2a Instructions

Due:

This is a warm-up for the full completion of Project 2.  You will have a chance to use exceptions, files, and stream, and to analyze a bit of the Java library.

Code Part:  Complete the Text File Dumper program.  This program allows a user to select a file, then prints each line of the file on the console.  In no case should the program blow up.  Catch exceptions, report them, and terminate gracefully.  A skeleton of the program is in the TextFileDumper file, which also contains further information.  All your code should go in that one file.  Please get a printout of the turn-in receipt.

Be sure to run the skeleton program before you start changing it!   Note: on some versions of Bluej, the file chooser window opens behind other windows and is invisible until you click its icon on the Windows taskbar.

Analysis Part: Java programs often use something called "System.out".  Less frequently, you may see "System.in".  Find out what these really are, and draw their "family tree".  Also draw the family tree for IOException.   Finally, answer briefly: "Why is System.in less useful than System.out?"

Looking Ahead: If you intend to submit a genuine historical dates file for participation points, be working on it!  It will be due before the main Project 2 deadline.

Click here to submit electronically.