So right now Im trying to read data in from a text file. I got a text file that basically looks like this:
John 15 5 1
Frank 23 8 1
Zach 17 1 4
John would be the first name, 15 would be an int, 5 would be an int, and 1 would be an int. How can I use getline to store each each value in that order, then go to the next line and do it again, and then go to the next line and do it again, until the end of file?
So I understand how to read from this first line, but I dont know how to read the next line? Also I havnt really learned arrays yet, so I would prefer to solve this without them if possible.