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