Can you skip fields using getline?

If you have an input file formatted like so.


Hello 25 how are you
Hello 26 abc def



And you are using a blank space delim is there anyway to get to hello then 25 and then skip to the end of that line and continue picking up the next line?

while (getline(Input, Data, ' '))
Last edited on
Topic archived. No new replies allowed.