Welcome to Westonci.ca, where your questions are met with accurate answers from a community of experts and enthusiasts. Connect with professionals ready to provide precise answers to your questions on our comprehensive Q&A platform. Experience the ease of finding precise answers to your questions from a knowledgeable community of experts.

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.