Lab Assignment 10
Due: December 2nd by 9:00 pm
Building on Lab Assignment 9 (TestScores Class Custom Exception), modify your code as follows: Read in an array of test scores from a file. If any of the test scores are invalid (via InvaidTestScore exception), then skip the invalid test score and continue to process your input file until an EOF (end-of-file); write out to a new (valid) data file. You may choose your input data file regarding values. For the File I/O, you should use: InputStream and OutputStream Classes. Only the Java code is needed for this assignment.
Basic Example:
File inputFile = new File(“readTestScores.txt”);
File outputFile = new File(“writeTestScores.txt”);
FileInputStream fis = new FileInputStream(inputFile);
FileOutputStream fos = new FileOutputStream(outputFile);
For Reference (Lab 9 Assignment)