I need to split up a line coming in from a file. The file contains a list of books with an id, Author, published date, and title.
91507 Lewis Carroll 1865 Alice in Wonderland
The author name I can just split up into first and last, but what about the title?? I have no idea how to deal with that. Should I just create a second file so I can use getline?
I am a newb and I don't understand how to use stringsteam for this, or split() or anything like that, so if that is what you suggest could you please explain what's happening? I haven't understood any of the examples I've looked at well enough to modify them to suit my purpose.