1. A program needs to read a sequential access file, line by line, and display each line on the computer screen. The file, which was opened successfully, is associated with the inFile object. Write the code to read and then close the file.
2. Correct the condition in the following if clause, which should determine whether the open function was able to open the file associated with the outFile object: if (outFile.open()).