Binary Files in C++ | CPP Programming File Handling Video Tutorial

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

КОМЕНТАРІ • 29

  • @onkarpatil6150
    @onkarpatil6150 8 років тому +9

    +LearningLad ... Superb Job.. I saw your each and every tutorial of Data File Handling.. U made the concepts so easy to understand..!

    • @LearningLad
      @LearningLad  8 років тому +2

      +Onkar Patil
      glad to hear that.
      Thank you :)

  • @kartikjoshi772
    @kartikjoshi772 7 років тому +3

    Very great work sir! Please keep uploading videos covering all topics of class 12 cbse

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

      Thank you.
      currently we dont have any plans on making tutorials on cbse class 12.

  • @moonyeah4560
    @moonyeah4560 8 років тому +6

    It's very interesting but Im trying to understand How To Make your own binary file format With 3D mesh in It I mean something like ".4od" or ".XSBF" etc...

    • @erenyeager3742
      @erenyeager3742 4 місяці тому +1

      Use the same but look up the file format for those extension it must mostly contain headers or footers in bin format

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

    I haven't tried this yet but, does this mean that I can create a copy of an executable file (that still executes) by reading it in binary format and creating another file in binary format?
    I'm just trying to understand what it means to read a binary.. is that like reading the hexcode/hexdump? sorta?

  • @bonbonpony
    @bonbonpony 5 років тому +1

    Is there some way to check whether the file is already there before opening it for writing, in order to avoid overwriting a pre-existing file by mistake?

    • @bob-ny6kn
      @bob-ny6kn 11 місяців тому

      IF EXIST "filename"

    • @bonbonpony
      @bonbonpony 11 місяців тому

      @@bob-ny6kn I was asking about standard C++, not about… whatever it is that you wrote :q

  • @ctutor2781
    @ctutor2781 10 років тому +5

    I like your tutorial, but the file that was created can be viewed with notepad when I ran it.
    It was not unreadable like a normal binary file.
    Why is it readable with a text editor?
    Good tutorials.

    • @LearningLad
      @LearningLad  10 років тому +3

      Hey sorry for late reply... your binary file is readable in text editor because the environment where your application runs, treats both text and binary file in the same way.Checkout this linkwww.cplusplus.com/reference/cstdio/fopen/ In the bottom it states thatDepending on the environment where the application runs, some special character
      conversion may occur in input/output operations in text mode to adapt them to a
      system-specific text file format. Although on some environments no conversions
      occur and both text files and binary files are treated the same way, using the
      appropriate mode improves portability.

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

    does strlen count spaces also?

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

    good video

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

    what is the line file.put(input[counter]) ; for ?

  • @sunithabinu4543
    @sunithabinu4543 4 роки тому

    Can you make a tutorial on stdin,stdout,stderr

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

    why do u have to reset the position of the pointer with file.seekg(0)

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

    when i open the file i get an error line too long was truncated. What does this mean

  • @jh-xk2ch
    @jh-xk2ch 8 років тому

    should the

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

      Hey, I was wondering the same thing. Did you ever figure this out? I tried making the program with just

    • @sharonlyu4161
      @sharonlyu4161 6 місяців тому

      @@ifUthinkits2loud maybe too late but I think it should be < instead of

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

    Dude, if we open the .bin file it is showing the raw text actually it should show some unknown symbols txts etc.. then wat is the difference between text and binary file? only extension?

  • @stargazerch.3605
    @stargazerch.3605 3 роки тому

    Mixing C and C++ is never a good idea.

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

    thanks your video save me all the time I wanted to ask if you can provide us with your e-mail if we want to ask something about code

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

      Ask Your doubts by posting comments. if we are not available then other viewers can answer :)

  • @karthikdevadiga4678
    @karthikdevadiga4678 4 місяці тому

    These comments are mostly 7-8 years old, I hope they are earning 25 lpa😅

  • @ВладиславСмыков-м9л

    Мне все так понятно!

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

    haack

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

    1:39 Connnvurt! xD