Advertisement Remove all ads

Write the Use of Following File Pointers with an Example : Seekg( ) - Computer Science 1

Advertisement Remove all ads
Advertisement Remove all ads
Advertisement Remove all ads
Answer in Brief

Write the use of following file pointers with an example :

seekg( )

Advertisement Remove all ads

Solution 1

Seekg(): This function is used to search the data byte in a file when the file is opened in read mode.

Solution 2

SEEKG() →is used to move the get pointer to a desired location with respect to a reference point.

Syntax : file_pointer.seekg (number of bytes , Reference point);

Example : fin.seekg(10,ios :: beg);

Concept: C++ Programming
  Is there an error in this question or solution?

APPEARS IN

Advertisement Remove all ads
Share
Notifications

View all notifications


      Forgot password?
View in app×