CIS 218 Course Materials
Source File Description
  
FileOps.java A number of examples of how to use the java.io.File - an abstraction of the
underlying operating system File object (or file handle).
  
ReadConsole.java Read text (Strings) from the console and echo them back at the end.
  
ReadFile.java Read text from a file and echo it to the console.
  
WriteFile.java Read text from the console and write it to a file.
  
WriteBankRecordFile.java Read text from the console, create a BankRecord object and write it to a file (in plain text).
Compare the output of this program with the output of ATMSimulator and ATMSimulatorOS.
  
BankRecord.java A class that represents a Bank transactions.
  
ATMSimulator.java A bad ATM simulator using traditional binary I/O.
  
ATMSimulatorOS.java A bad ATM simulator using ObjectSerialization.
  
BalanceCalculator.java Reads the transaction file created by ATMSimulator and calculates a balance.
  
BalanceCalculatorOS.java Reads the transaction file created by ATMSimulatorOS and calculates a balance.
This is a solution to our in-class exercise to convert BalanceCalculator to read
the data written by ATMSimulatorOS.
  
JTail.java A simple Java implementation of the UNIX tail utility, except ours doesn't support STDIN yet.
This example demonstrates the use of the RandomAccessFile (though we are still doing sequential reads).
  
Class versions The source files we used in classes, including any modifications that we made in the process of discussion.
  
Back to Current Session | Web Publishing | Faculty Directory | Maps and Directions | Search
Copyright © 1997 College of DuPage
Computer Information Systems
(630) 942-2800 x51902
goodacrc@cdnet.cod.edu
Updated 10 Jul 2003
Disclaimer