I'm not doing anything else in the while loop, it is set to end at EOF but if it works correctly it should keep moving down the file and once it finish's reading in the characters it should quit, and I would be able to set it to ignore the character and just read the int's. But the way it is working is when it hits the char it goes back a place to the last int in the list... That is where my problem lies. I tried taking it in as characters and then i was stuck with single characters not the full numbers. I could set it with a getline to stop on a space... Then cast it as an int and save it to an int... But that is the only way of fixing it that I can think of right now. Any ideas?
|