What is the best way to parse or iterate an istream? I need to create a function that takes an istream, parses it and creates an object so was wondering the easiest way to do this. Even something that could convert it to string would be dandy.
What is the best way to parse or iterate an istream ? I need
Share
You can use an
istream_iterator.This will split the input stream at all whitespaces.