Sunday 8 September 2013

How do I get the current position of the file pointeR

Tags

How do I get the current position of the file pointer?

Ans:
 


We can get the current position of the file pointer by using the tellp( ) member function of ostream class or tellg( ) member function of istream class. These functions return (in bytes)positions of put pointer and get pointer respectively.



EmoticonEmoticon