I\'m using std::getline() to read lines from an std::istream-derived class, how can I move forward a few lines?
Do I have to just read and discard them?
For what it's worth:
void skip_lines(std::istream& pStream, size_t pLines) { std::string s; for (; pLines; --pLines) std::getline(pStream, s); }