+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!!
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?
Awesome teaching Sir!
And Sir,can you briefly explain the uses of seekg,seekp,tellg and tellp??
This really helped me understand this subject, thanks!
ur videos are all amazing Indian people make me crazy all of them smart doing coding
Thank you :)
thank you so much sir it helped more than my expectations .
Awesome.
Thank you and keep Learning :)
thank man it is very helpful for me excellent
glad my video helped you :)
thanks man. It really helped me
Glad my video helped you
Very clear explanation, thank you so much!
Pleasure :)
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?
very good lesson! ~ thanks a lot~ . . we need more functions about files !
Coming soon!
Thank you very much for the video
my pleasure :)
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 :)
Awesome explanation... it really helped me a lot. Thank you !!!
my pleasure
thank you :)
Sir you explained really osm !!!👍👍
Thank you so much 😀
Thank you very much, you are very good at teaching!
great, great explain!
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
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.
Is there a way to indicate he row to seek in the file or is it really just for the character number?
Thank you!
Pleasure :)
Sir Thank You so very much !
It was really helpful.
+Abhishek Rai
pleasure :)
seek(p|g) tell(p|g) mode write(p)/mode read(g)
Thankz
Pleasure :)
nice thanks :)
No problem!
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 how did you make the count in seekp() function??????
what's the difference between seekg() and ignore() ?
bro how are u how to write program to copy content from file to file please
cout
Try to open in both read and write mode
Anil Shetty rocks ! Anil Shetty > Sunil Shetty
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
how to access new line if i have text in different lines ?
Watching in 2024😮
are learning lad jra jor se bola kr bhai
I wish it was in Urdu 🥲