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

Поділитися
Вставка
  • Опубліковано 31 жов 2024

КОМЕНТАРІ • 60

  • @humanhazard607
    @humanhazard607 5 років тому +6

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

  • @NickLordiYT
    @NickLordiYT 10 років тому +9

    This really helped me understand this subject, thanks!

  • @mohammedabobakrsaeedbodawa5013
    @mohammedabobakrsaeedbodawa5013 7 років тому +1

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

  • @umairabbasi2495
    @umairabbasi2495 7 років тому +4

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

    • @LearningLad
      @LearningLad  7 років тому

      Awesome.
      Thank you and keep Learning :)

  • @ahmadrezamp4183
    @ahmadrezamp4183 Місяць тому +1

    thank man it is very helpful for me excellent

  • @grishrana8432
    @grishrana8432 Місяць тому +1

    thanks man. It really helped me

  • @syedrizvi2687
    @syedrizvi2687 3 роки тому +1

    Very clear explanation, thank you so much!

  • @grybouilli5259
    @grybouilli5259 6 років тому +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?

  • @technomoney618
    @technomoney618 3 роки тому +2

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

  • @akshatsingh4937
    @akshatsingh4937 2 місяці тому +1

    Thank you very much for the video

  • @teluguPrapancham867
    @teluguPrapancham867 7 років тому +1

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

  • @arunsurya5534
    @arunsurya5534 5 років тому +3

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

  • @ShivamSingh-tk5gu
    @ShivamSingh-tk5gu 4 роки тому +1

    Sir you explained really osm !!!👍👍

  • @georgeofsindrila
    @georgeofsindrila 8 років тому +1

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

  • @xinking2644
    @xinking2644 2 роки тому

    great, great explain!

  • @whoisjrj
    @whoisjrj 7 років тому +1

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

    • @LearningLad
      @LearningLad  7 років тому

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

  • @blind_neighbourhoodNerd
    @blind_neighbourhoodNerd 5 років тому

    Hey thanks so much , this really helped me!!

  • @sairenuka6249
    @sairenuka6249 9 років тому +3

    Thanks it helped me a lot

  • @shashilata6702
    @shashilata6702 8 років тому

    Thanks for your helpful tutorial

  • @SajithJohnSam
    @SajithJohnSam 9 років тому +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 3 роки тому

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

  • @daekyong5059
    @daekyong5059 2 роки тому

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

  • @Endersontutoriales
    @Endersontutoriales 7 років тому +1

    Thank you!

  • @abhishekrai4325
    @abhishekrai4325 8 років тому +1

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

  • @dealvin
    @dealvin 3 роки тому

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

  • @AhamedKabeer-wn1jb
    @AhamedKabeer-wn1jb 7 років тому +1

    Thankz

  • @ahmedelmelegy5490
    @ahmedelmelegy5490 4 роки тому +1

    nice thanks :)

  • @amirhajimirsadeghi
    @amirhajimirsadeghi 10 років тому +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 8 років тому +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!!

  • @sanjeevs6891
    @sanjeevs6891 6 років тому

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

  • @adventuresinphysics5069
    @adventuresinphysics5069 2 роки тому

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

  • @mohammedabobakrsaeedbodawa5013
    @mohammedabobakrsaeedbodawa5013 7 років тому

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

  • @AnubhavShekharxp
    @AnubhavShekharxp 8 років тому

    cout

    • @ssharma5127
      @ssharma5127 5 років тому

      Try to open in both read and write mode

  • @smithcodes1243
    @smithcodes1243 8 років тому +1

    Anil Shetty rocks ! Anil Shetty > Sunil Shetty

  • @JamesBond-jp2ep
    @JamesBond-jp2ep 8 років тому

    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?

  • @saikiranrudra1283
    @saikiranrudra1283 7 років тому

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

  • @mominmoney8835
    @mominmoney8835 5 місяців тому

    Watching in 2024😮

  • @kaptanyadav6069
    @kaptanyadav6069 6 років тому

    are learning lad jra jor se bola kr bhai

  • @alishbamehmood6500
    @alishbamehmood6500 Рік тому +1

    I wish it was in Urdu 🥲