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?
Yes use std::getline
unless you know the location of the newlines.
If for some strange reason you happen to know the location of where the newlines appear then you can use ifstream::seekg
first.
You can read in other ways such as ifstream::read
but std::getline
is probably the easiest and most clear solution.