Write a code segment that creates an ifstream object named infile, opens the
numbers.txt file created by the code in the previous question, and associates it with
infile. The code should then use a loop to read and display all of the numbers in the
file before closing it.
What will each of the following program segments display?
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here