I am working on a coding project for my c++ class, but I just can't get this right. I need to read a text file which data is seperated by commas until the end of the line there is a new line and a repeat of data.
So, how can I do a double disect of the data stream?
That gets me the whole line to a temp string variable, but how do I then look at the string and pick out the data seperated by commas?
Ex data set:
23,53,52,543,63,12,2,523,98
32,53,43,43,65,3,646,2,34
-all rows have the same number of sets of data, its just the length of the individual pieces of data in the string that vary.
Any help would be greatly appreciated!
Think outside the box.
To go on an adventure, one must discard the comforts and safety of the known and trusted.