Project 2 (Draft)
Due Wednesday 6/27/2001
Last Modified
Introduction
This project is to read and write data from the PIM to a file.
data file layout
class of data:
data member:data
data member:data
class of data:
data member:data
data member:data
There are 3 classes of data:Memo, Event, Address.
The data member field indicates which data member of the class is to be filled in.
Example file, this will be one of the files that we use to test your program.
Note: because of the use of a : as the delimiter between the tag and the data the colon should only be used for this perpose.
What you will need to do
Your program should:
- prompt the user for an input file
- prompt the user for an output file
- read the entire contents of the input file placing the data
in the appropreate objects of the PIM
- Print out all objects so that the results can be compaired with the input file
- Save the data to the output file. The order of the objects in the output file does not need to match the input order but it does need to keep each object together.
What to submit
The code and your test input file and the output file.