2079 10

CSC166 ยท 2079 ยท 5 marks

Write a program to illustrate the use of seekg() and tellg().

Write a program to illustrate the use of seekg() and tellg(). [5]

Object Oriented ProgrammingChapter 8: File handlingFile Access Pointers and their Manipulators
  • 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 ...