Basically what I want the program to do is to open up a file, grab the number at the end, and then output it into another file using getline and the stream extraction operator >>.
I have set up all the basic stuff like setting up the header already. What I am having problems with is getting the "5" into it's own variable in this line:
Note there is a space in front of "X-Cord" and a space between the 5 and the comma at the end.Code:"X-Cord": 5 ,
To further clarify what I mean by 5 into it's own variable, I want to separate each word into a variable such as a, b, and c using the getline and >> operator.
How would I do that?