cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
Can you skip fields using getline?
Can you skip fields using getline?
Dec 15, 2014 at 1:31am UTC
mishappp
(59)
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
Dec 15, 2014 at 1:31am UTC
Topic archived. No new replies allowed.