Advertisements
Advertisements
प्रश्न
Write the use of following file pointers with an example :
seekg( )
संक्षेप में उत्तर
उत्तर १
Seekg(): This function is used to search the data byte in a file when the file is opened in read mode.
shaalaa.com
उत्तर २
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);
shaalaa.com
C++ Programming
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?