the only way i know to get data out of a text file is with the getline function on a fstream object. one line in my text file contains two integers. is there a way i can read in the integers? or can i convert the line with two integers i get using getline into two integers?