Place "Cursor" in file

Hey! Im wondering how I would "Set" the cursor in a file to another line. How would I do this? Im really tired of having to "getline()" to go to lower lines and I dont know how to go back up again once I am already on a lower line. Thanks guys! any questions, just post below! Thanks! :)
Use tellg and seekg.
Caveat: file must be open in ios::binary mode.
Topic archived. No new replies allowed.