Not a problem!
You already know that the
getline() function exists to retrieve "a line of" data from the file. That's the first step.
So... now you have "a string of text," so the
next objective will be how to break apart that string of text into usable pieces ... and
here is where you might have a bit of thinking-cap work to do!
The string
"Mom and Pop Store Number 3 Some Town in WY" consists of
nine space-delimited words, whereas the next string,
"Pop Hacker 15 2500 2000" (and every string thereafter...) appears to consist consistently
of five.
Therefore the thought question:
"what's the bright line rule?" You decide. But, you
have to decide, because a digital computer only deals in "1" vs. "0". True or False. Yes or No.
And so it goes... I hope that this little diatribe gives you some sort of useful starting-point and food for thought.
And,
trust me, there are
no "newbie questions." My first computer program
(never-you-mind how many years ago...) was eight lines long, took me six months to write, and had a bug in it.
I'm
still fascinated by computer programming, and I still enjoy doing it. Welcome to the profession.