CSC2310 Assignment 5 25 points due 10/22/01 Dr. Harrison Fall 2001

This project will exercise your skills with the system library and objects.


Extend the jbp simpleIO class so that it can read a file. Create a new package with the name extended_IO.


  1. first remove the line "package jpb;" from the SimpleIO.java source (make a copy!!)

  2. SimpleIO is a collection of class methods and objects. Your extension will need to be instance methods and instance variables.

  3. Instead of prompt you will use the constructor to pass the file name. (i.e. Don't implement a copy of prompt)

  4. How will you solve the problem of overriding or overloading readLine()?

  5. The FileReader and FileWriter methods documented in Dr. King's book are probably the best to use for creating an input to BufferedReader and BufferedWriter. (i.e. The equivalent of streamIn in simpleIO) .

  6. Remember to handle the possible exceptions in a try{}catch(){} block.

  7. Once you've created a working class or classes, add the line "package extended_IO; " to the top of the code.



The sources for the programs should be printed and the sources and class files should be supplied on a disk. Please label your work.