What are tellp(),tellg(),seekp(),seek(g) functions in C++ language?
You should also convey to me in which programming conditions these functions are employed and it is possible to need of using these types of functions.Give one of these too.Many thanks for aiding me.
there tend to be two document pointers with C++
someone to read (get pointer) and also other to generate (put pointer)
tellp() — tells this position in the put pointer
tellg()- explains to the position in the get pointer
each returns prolonged int.The position on the pointer from the start of the file…
for example.content in the file hi there world.think about..it profits 3, if the get pointer is at l
seekp() as well as seekg() are usually to position the put and obtain pointers using random location.
think about..u would like to read merely from world.then oughout can shift using seekg() towards start with w.
relate ftell() and fseek() with stdio.h ( C language).
Leave a Reply
You must be logged in to post a comment.