Search the courses, subjects, tracks, games and features, or jump straight to a page.
2 cards from this section. Quick, good the night before a test.
What function is used to set the position of the get pointer?
It starts with 's' and is related to getting!
Which function retrieves the current position of the put pointer?
It tells you where you've last written!
What is seekg() used for?
Remember which pointer deals with reading!
Which of the following functions retrieves the current position of the get pointer?
Think about which function begins with 't' for telling!
Write a program that opens a file, seeks to the end, writes data, and then goes back to the beginning to read it back.
Don't forget to open the file in the correct mode!
Explain the implications of calling tellg() directly after a seekp() operation.
Consider what happens to file pointers when you write before reading.
5 more questions in this section. Enroll free to practise them all.
Enroll free