I want to read certain lines from a file, let's say the 4th and the 1st lines. First I used getline (which I read from here: http://www.cplusplus.com/forum/beginner/15303/ ) 4 times to read the 4th line. Using getline again will give me the 5th line, not the 1st line. So how do I get the 1st line?