I have an input file that has multiple lines in the current format:
[message1]/[message2]/[message3]
I have to extract [message#] and put each into a separate container (vector, array, etc). Is there an easy way to do this with a stringstream?
Note: [message#] will NOT contain the character '/'.
I have initially tried to do this:
istringstream iss;
iss >> message1 >> "/" >> message2 >> "/" >> message3;
but it wouldn't work. Any hints appreciated.