What's the cleanest way of getting the effect of
istream::getline(string, 256, '\n' OR ';')
while ((is.peek() != '\n') && (is.peek() != ';'))
Unfortunately there is no way to have multiple "line endings". What you can do is read the line with e.g.
std::getline and put it in an
std::istringstream and use
std::getline (with the
';' separator) in a loop on the
Although you could check the Boost iostreams library to see it it has functionality for it.