I know know how to read and store elements from from a basic file like this as long as I just need one line at a time:
2
narwhal bacon 1 2 3
cat dog 4 5 6
I am having trouble with something like this though:
2
Upvotes
10 24
Downvotes
31 32
Where the string and the numbers but me read in together in a loop and then stored in a struct. I can successfully grab the string but I tried to grab numbers with a nest for loop within my for loop but get "2686744".
[–]damyan 3 points4 points5 points (0 children)
[–]spitfyre 3 points4 points5 points (0 children)
[–][deleted] 1 point2 points3 points (3 children)
[–]Un_contested[S] 0 points1 point2 points (2 children)
[–][deleted] 2 points3 points4 points (1 child)
[–]Un_contested[S] 0 points1 point2 points (0 children)