Two file match programming assignment:

Assignment #1:

Fix the error or errors in the program called ONEMANY. This program is reading a file with one record per id and another file with multiple records per id. If either file has an id that does not match the other file then an error message should be written out.

In testing your solution, make sure that there can be two mismatches in a row. I'm not sure the data gives an example of this. For example:

111... 111...

112... 111...

115... 111...

222... 111...

222...

Assignment #2:

The program MANYMANY reads two files with multiple records and creates an output file. It is okay for an id to be on one file and not on the other. Modify the code so that there has to be a record on both files. If one is missing it is an error. As in the example above, make sure your modifications can handle two mismatches in a row.