C++ Practical
Class Design Snippet-4
Question : Write a program that reads a file consisting of three columns of integers and called DATA.DAT
- An error message is displayed if the file cannot be opened.
- When the value of the second column is zero, display the value read for the third column, and stop reading data from the file.
- The input file stream is closed before the program code.
- The program should not use any ifstream class member functions
Answer: