Assume that a file named values.txt exists and that it contains a series of numbers, one per line in the file. Also assume that a program can successfully execute the following statements to open the file:

ifstream inputFile;
inputFile.open("values.txt");

Write a loop that reads each number from the file and displays each number on the screen.



Answer :

Other Questions