C++ File Position Indicators | Get, Put | tellg tellp | seekg seekp

Sdílet
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

Komentáře • 56

  • @NickLordiYT
    @NickLordiYT Před 10 lety +9

    This really helped me understand this subject, thanks!

  • @humanhazard607
    @humanhazard607 Před 4 lety +6

    Awesome teaching Sir!
    And Sir,can you briefly explain the uses of seekg,seekp,tellg and tellp??

  • @umairabbasi2495
    @umairabbasi2495 Před 7 lety +4

    thank you so much sir it helped more than my expectations .

    • @LearningLad
      @LearningLad  Před 7 lety

      Awesome.
      Thank you and keep Learning :)

  • @mohammedabobakrsaeedbodawa5013

    ur videos are all amazing Indian people make me crazy all of them smart doing coding

  • @akshatsingh4937
    @akshatsingh4937 Před 11 dny +1

    Thank you very much for the video

  • @arunsurya5534
    @arunsurya5534 Před 4 lety +3

    Awesome explanation... it really helped me a lot. Thank you !!!

  • @grybouilli5259
    @grybouilli5259 Před 6 lety +3

    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?

  • @georgeofsindrila
    @georgeofsindrila Před 8 lety +1

    Thank you very much, you are very good at teaching!

  • @technomoney618
    @technomoney618 Před 3 lety +2

    very good lesson! ~ thanks a lot~ . . we need more functions about files !

  • @teluguPrapancham867
    @teluguPrapancham867 Před 7 lety +1

    Tq man(sir)!!
    U r teaching is good.
    Hope u will come up with tutorials on more topics in future.

  • @syedrizvi2687
    @syedrizvi2687 Před 3 lety +1

    Very clear explanation, thank you so much!

  • @SajithJohnSam
    @SajithJohnSam Před 9 lety +4

    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?

    • @henrylarson1
      @henrylarson1 Před 2 lety

      Remember that for an fstream, the g (get, read) and p (put, write) offsets are merged into a single offset.

  • @ShivamSingh-tk5gu
    @ShivamSingh-tk5gu Před 4 lety +1

    Sir you explained really osm !!!👍👍

  • @whoisjrj
    @whoisjrj Před 7 lety +1

    Thank you! It helped me out on al lot of things!

    • @LearningLad
      @LearningLad  Před 7 lety

      i'm really glad that my tutorials are helping you.
      Keep Learning :)

  • @blind_neighbourhoodNerd

    Hey thanks so much , this really helped me!!

  • @sairenuka6249
    @sairenuka6249 Před 8 lety +3

    Thanks it helped me a lot

  • @shashilata6702
    @shashilata6702 Před 7 lety

    Thanks for your helpful tutorial

  • @xinking2644
    @xinking2644 Před 2 lety

    great, great explain!

  • @Endersontutoriales
    @Endersontutoriales Před 7 lety +1

    Thank you!

  • @daekyong5059
    @daekyong5059 Před 2 lety

    Is there a way to indicate he row to seek in the file or is it really just for the character number?

  • @amirhajimirsadeghi
    @amirhajimirsadeghi Před 9 lety +1

    At minute 10 when you called seekp() to chabnge the write position, why does the value of tellg() and tellp() both change?

    • @steavbun4199
      @steavbun4199 Před 8 lety +1

      +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!!

  • @abhishekrai4325
    @abhishekrai4325 Před 8 lety +1

    Sir Thank You so very much !
    It was really helpful.

  • @sanjeevs6891
    @sanjeevs6891 Před 6 lety

    sir how did you make the count in seekp() function??????

  • @AnubhavShekharxp
    @AnubhavShekharxp Před 8 lety

    cout

    • @ssharma5127
      @ssharma5127 Před 5 lety

      Try to open in both read and write mode

  • @mohammedabobakrsaeedbodawa5013

    bro how are u how to write program to copy content from file to file please

  • @saikiranrudra1283
    @saikiranrudra1283 Před 7 lety

    how to access new line if i have text in different lines ?

  • @AhamedKabeer-wn1jb
    @AhamedKabeer-wn1jb Před 7 lety +1

    Thankz

  • @ahmedelmelegy5490
    @ahmedelmelegy5490 Před 4 lety +1

    nice thanks :)

  • @adventuresinphysics5069

    what's the difference between seekg() and ignore() ?

  • @JamesBond-jp2ep
    @JamesBond-jp2ep Před 7 lety

    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?

  • @mominmoney8835
    @mominmoney8835 Před 2 měsíci

    Watching in 2024😮

  • @dealvin
    @dealvin Před 3 lety

    seek(p|g) tell(p|g) mode write(p)/mode read(g)

  • @smithcodes1243
    @smithcodes1243 Před 8 lety +1

    Anil Shetty rocks ! Anil Shetty > Sunil Shetty

  • @kaptanyadav6069
    @kaptanyadav6069 Před 6 lety

    are learning lad jra jor se bola kr bhai

  • @alishbamehmood6500
    @alishbamehmood6500 Před rokem +1

    I wish it was in Urdu 🥲