CSC 172 - Introduction to Algorithms and Data Structures

Dr. R. M. Siegfried

Assignment #13 - Writing and Reading a Binary File.

Due Wednesday, April 23, 2014

Create a text file that stores a First name, a last name, and an age, one record per line.

Your program will read a line of text from this file and then create an object (because Java doesn't support records) containing that data. Then write the object in a new binary file. The binary file that you have created should contain a series of records, each record containing a first name, last name and an age.

Your program should then close the file and re-open it for input, read the file record by record and display on the screen, one record per line.

You will submit your source code, content of the text file and then output generated by the program.

[Back to the Assignments List]