What is Get Pointer and Put Pointer in Data File Handling

2,944 views · Published 8 November 2018 · 12:11 · Indexed 27 September 2026

Channel: Anjali Luthra · 2018 · Education

Watch on YouTube

File Pointers

Data File Handling

Get Pointer : A pointer which stores the address from where the next value will be read from the file.
Put Pointer : A pointer which stores the address of location where next value will be stored in the file.
Read :- get
Write :- put

Fobj.tellp   gives an integer which is the current address in put pointer
tellg gives an integer which is the current address in put pointer

seekg :- used to place/move get pointer at any location in the file
seekp :- used to place/move put pointer at any location in the file


F.seekg byteno, offset
ios::beg
ios::end
ios::cur

Facebook Page : 
https://www.facebook.com/aeccomputereducation/
Link for Complete Java Tutorial in HIndi https://www.youtube.com/playlist?list=PLDDXuRcB-QG6MQ1Lwh4fI1cvNb09k0dOn
Link for Complete Tutorial for Programming in C  in HIndi https://www.youtube.com/playlist?list=PLDDXuRcB-QG5br_VxN4zSmORIKJSfh1Rj

Link for Complete  Python Tutorial in HIndi https://www.youtube.com/playlist?list=PLDDXuRcB-QG7FAWqrgUms1xEf7CcD7mjq

Complete Study Material for Class 12 CS https://www.youtube.com/playlist?list=PLDDXuRcB-QG4UDvkbqPV2y0La-PptDect

Complete Study Material for Class 12 IP  https://www.youtube.com/playlist?list=PLDDXuRcB-QG7gfmbcp-hJF5AeKd82-fz6

More from this channel