reading specific lines from .txt

How can I ignore the first xy row while reading from a .txt (start reading from the (xy+1)-th row)?
Read first xy rows and discard them. Alternatively if you know exact size of rows and opened file in binary mode, you can use seekp() method.
1
2
3
4
5
6
7
8
9
string line_to_discard;
int num_to_discard;

for (int i = 0; i < num_to_discard; i++)
{
    getline(fin, line_to_discard);
}

// start reading actual data here 
thank you much.
Topic archived. No new replies allowed.