All I/O should be done using istreams and ostreams. Output (or input) may be sent to (or taken from) the screen (or keyboard) by passing the actual argument "cout" (or "cin"), if desired. Use the C++ syntax for comments, and, where appropriate, the C++ mechanism for passing parameters by reference.
Assume that the input files use the same representation as in Assignment 1.
You should be able to detect and handle the same 3 types of errors you were required to check in Assignment 1. Don't forget to test a nonexistent file. You needn't reclaim storage or distribute your program over multiple files (but you will be required to do so in Assignment 5). Also, in Assignment 5 you will be required to use an interface similar to that of Assignment 3, so you consider using part or all of this interface in this assignment (I have publicized the header file "taskstub.h" that you will be using).
In this program you may use assertions to check for failure of the "new" function. Additional error handling may be required in Assignment 5.