Ive been given a task where i read in a line of text from a file, and then need to seperate that line into seperate strings, ive done this however I also need to keep some attatched...
the file contains "abc def ghi jkl mno", this is read in using getline(), then using strtok to split them up, which gives me, each line is a different string
abc
def
ghi
jkl
mno
how would i get the 3rd token to stay attatched? like
abc
def
ghi jkl
mno