Hello,

Is it possible to convert the input you get from using the getline(inputfile, string) to an int?

Say i have a file "abcd.txt", with the following content:

6
3

How can i convert the 6 and 3, which are strings because of the getline() function, to an integer?

Thank you very much,

Neil.