I want to read a line of integers from the user. I\'m not sure how to check to see if the input has ended. For example I want to be able to do something like
using fstream you can do something like this
ifstream ifile("input.txt"); while(!ifile.eof()) { /* do something */ }
you can also use this
if(!ifile.is_open()) { /* do something */ }