-
January 26th, 2010, 04:51 PM
#1
Getline_input_to_int
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.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|