Object Oriented Programming20795 marksFile Access Pointers and their Manipulators
Write a program to illustrate the use of seekg() and tellg().
Write a program to illustrate the use of seekg() and tellg(). [5]
- tellg() -- Returns the current get pointer position (current read position) in the file as a number of bytes from the beginning. - seekg() -- Moves the get pointer to a specified position in the file so that the next read operation starts from that position. These functions are used with input ...