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

:)
:(
hihi
:-)
:D
=D
:-d
;(
;-(
@-)
:o
:>)
(o)
:p
:-?
(p)
:-s
8-)
:-t
:-b
b-(
(y)
x-)
(h)