C++ File Position Indicators | Get, Put | tellg tellp | seekg seekp
Vložit
- čas přidán 27. 08. 2024
- In this c++ Video tutorial, you will learn the use of get and put position indicators available.
You will learn how to get/check the get and put position indicators using tellg() and tellp() function, how to set them using seekg() and seekp() function in detail with example.
Visit www.LearningLad... to get the SOURCE CODE of this tutorial and to watch more free computer programming video tutorials.
Learn Programming in HINDI at our youtube channel
/ learningladhindi
Catch us on SocialMedia
/ learninglad
www.google.com/...
/ learningladedu
This really helped me understand this subject, thanks!
Awesome teaching Sir!
And Sir,can you briefly explain the uses of seekg,seekp,tellg and tellp??
thank you so much sir it helped more than my expectations .
Awesome.
Thank you and keep Learning :)
ur videos are all amazing Indian people make me crazy all of them smart doing coding
Thank you :)
Thank you very much for the video
my pleasure :)
Awesome explanation... it really helped me a lot. Thank you !!!
my pleasure
thank you :)
thank you for a good video! What's the type of the value you put in seekg() (or seekp())? what is the value that tellp()/tellg() return?
Thank you very much, you are very good at teaching!
very good lesson! ~ thanks a lot~ . . we need more functions about files !
Coming soon!
Tq man(sir)!!
U r teaching is good.
Hope u will come up with tutorials on more topics in future.
sure
will be back soon :)
Very clear explanation, thank you so much!
Pleasure :)
Why do both the get and put pointers change dependantly when we change any of the this pointer at the fstream mode.? Are they dependant on each other?
Remember that for an fstream, the g (get, read) and p (put, write) offsets are merged into a single offset.
Sir you explained really osm !!!👍👍
Thank you so much 😀
Thank you! It helped me out on al lot of things!
i'm really glad that my tutorials are helping you.
Keep Learning :)
Hey thanks so much , this really helped me!!
Thanks it helped me a lot
+Sai Renuka
pleasure :)
+LearningLad 😊😊😊
Good Kutti
Thanks for your helpful tutorial
great, great explain!
Thank you!
Pleasure :)
Is there a way to indicate he row to seek in the file or is it really just for the character number?
At minute 10 when you called seekp() to chabnge the write position, why does the value of tellg() and tellp() both change?
+Amir Hajimirsadeghi Because The pointer was moved by seekp(2) it meant move the pointer from current position(0) to 2 , so when you use tellg() or tellp it meant you want to know where the pointer's position is then it will return number 2 for you!!
Sir Thank You so very much !
It was really helpful.
+Abhishek Rai
pleasure :)
sir how did you make the count in seekp() function??????
cout
Try to open in both read and write mode
bro how are u how to write program to copy content from file to file please
how to access new line if i have text in different lines ?
Thankz
Pleasure :)
nice thanks :)
No problem!
what's the difference between seekg() and ignore() ?
Hello, thanks for the nice video.
I have the task to output a .txt file in c++ compiler with a justified width of 25 inputted by the user.
I have to use ofstream and ifstream to read character by character and output each line so that
the maximum number of character in a line is not more than 25. (not more than 25 characters)
I need to solve this task urgently... :-(
Could you please help me out?
idk
Watching in 2024😮
seek(p|g) tell(p|g) mode write(p)/mode read(g)
Anil Shetty rocks ! Anil Shetty > Sunil Shetty
are learning lad jra jor se bola kr bhai
I wish it was in Urdu 🥲