I want to access specific lines in a "*.txt" file.
I've heard of seekp() and what not, but don't know how to call them as such.
If someone could help me out, that'll be great.
Seek functions jump to a specific offset. This does not work for lines because each line can be of a different length, so there's no way of knowing at which offset a specific line starts.
The easiest way to seek to a specific line is to simply call getline() repeatedly to count the lines.