reading in one word

I need to read in the first word of a line and process. then advance to the next number and process till end of line. I am going to use a endl loop and think I should use infile.get (ch) to retrieve each word. will this work and how do I advance read pointer over white space.
I would suggest reading in a string for the word even though i'm against them. and then is a number the rest of the line? if so, read in an int.
Topic archived. No new replies allowed.