C++ file handling for beginners! The easiest way to read/write into text files!

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 พ.ย. 2024

ความคิดเห็น • 531

  • @CodeBeauty
    @CodeBeauty  3 ปีที่แล้ว +50

    📚 Learn how to solve problems and build projects with these Free E-Books ⬇️
    C++ Lambdas e-book - free download here: bit.ly/freeCppE-Book
    Entire Object-Pascal step-by-step guide - free download here: bit.ly/FreeObjectPascalEbook
    🚀📈💻🔥 My Practical Programming Course: www.codebeautyacademy.com/
    Experience the power of practical learning, gain career-ready skills, and start building real applications!
    This is a step-by-step course designed to take you from beginner to expert in no time!
    💰 Here is a coupon to save 10% on your first payment (CODEBEAUTY_YT10).
    Use it quickly, because it will be available for a limited time.

    • @joshuapobal9861
      @joshuapobal9861 3 ปีที่แล้ว +1

      Thx a lot I think u talented in teaching..

    • @eunicefoo4499
      @eunicefoo4499 3 ปีที่แล้ว +1

      I love this video so much, it helps me a lots. Thank you😍

    • @sinclairakoto8564
      @sinclairakoto8564 2 ปีที่แล้ว

      could you do a tutorial on how to delete a row / entry from a file please 🙏☺

    • @cipherion
      @cipherion 2 ปีที่แล้ว

      Code change: void readFileText(std::string myFileChoice) should have been coded as :
      void readFileText(const std::string& myFileChoice) so it isn't a copied string causing a heap allocation and therefore running much slower and taking up more memory.

    • @appiahgideon213
      @appiahgideon213 2 ปีที่แล้ว

      thanks for this video, I've learned a lot from it

  • @tigergumby
    @tigergumby 3 ปีที่แล้ว +245

    You described how to do all this in 20 minutes, what my school book took a million pages to describe. (Give or take a few hundred thousand pages.) Thank you!

    • @DizzyMay123
      @DizzyMay123 3 ปีที่แล้ว +5

      Exactly! Took me ages to try and work this out then I realised why don't I just find a codebeauty video hahaha

    • @jerryp2433
      @jerryp2433 ปีที่แล้ว +2

      And a few thousand dollars.

  • @klevismema4998
    @klevismema4998 3 ปีที่แล้ว +109

    Hey I commented in your last video and I said I was going to have a exam in c++ . I managed to get a 10/10 max score, thank you very much for helping me personally it was such a great journey through these series.

    • @CodeBeauty
      @CodeBeauty  3 ปีที่แล้ว +19

      I remember 🤗
      I'm so happy and proud! 🥳🥳💗

  • @meekosalas1153
    @meekosalas1153 3 ปีที่แล้ว +62

    Prefect timing, we are dealing with File I/O this week in class

    • @CodeBeauty
      @CodeBeauty  3 ปีที่แล้ว +9

      It's going to be an easy class for you. 😁😁
      You can read the description of this video for more details. ☺️

    • @DonteTidwell
      @DonteTidwell 3 ปีที่แล้ว

      same here

    • @KwizeraPacifique-xf9dd
      @KwizeraPacifique-xf9dd 9 หลายเดือนก่อน

      same here , next week.

  • @luxis_2295
    @luxis_2295 3 ปีที่แล้ว +26

    I’ve been having the doubt of how read and write from a file for weeks because my programming professor did not explained as good as you. You were the light that lit the way for me because I needed it for a project. Thank you Saldina!!

    • @CodeBeauty
      @CodeBeauty  3 ปีที่แล้ว +1

      You're very welcome! Glad I could help! 🥰🥰

    • @edinfific2576
      @edinfific2576 3 ปีที่แล้ว +2

      In order to explain something, a person needs to have both a good knowledge and understanding of what they're explaining AND an ability to bring that understanding down to a comprehensible level or, in other words, to bridge that gap between deep understanding and no idea about how something works. Many teachers and professors seem to lack either one, two or all of the three qualities above.

  • @HuyNguyenQuang-hb5kk
    @HuyNguyenQuang-hb5kk 14 วันที่ผ่านมา +1

    I wish I had known your channel sooner, at least 2 years. Your lectures have minimized my study process from 3 hours (on my uni's class lecture) to just no more than 1 hour.

    • @CodeBeauty
      @CodeBeauty  14 วันที่ผ่านมา +1

      I'm so glad my videos have been able to help you learn faster and more efficiently! 🤩🤩

  • @sehrishzarin2431
    @sehrishzarin2431 ปีที่แล้ว +2

    my course constructors ignored this chapter even in exams last semester , now that i want to make my own project i realized how important this topic is

  • @Seanxiao-p3r
    @Seanxiao-p3r ปีที่แล้ว

    I recently started to work on a project which is in C++. I literally knows nothing about C++ and came to you channel. You literally saved my work... Please continue doing this! Many thanks!

  • @sinnyx3248
    @sinnyx3248 6 หลายเดือนก่อน +1

    explained my 3 lectures from college in 15 mins!! this is so sick because Ive actually understood you better

  • @potatoitis3326
    @potatoitis3326 ปีที่แล้ว +10

    Saldina thank you for making this concept easier to understand. You are definitely an inspiration and I hope to be as great at programming just like you someday.

  • @omarbenamer9985
    @omarbenamer9985 2 ปีที่แล้ว +1

    IT HAS BEEN DAYS OF HARDWORK THAT I PASSED THROUGH IN ORDER TO GET MY FIRST APPLICATION, WHICH IS CONCERNED TO BE THE END OF THE YEAR FINAL PROJECT
    BY YOUR ENLIGHTENMENT; YOU MAKE ME SO HAPPY BECAUSE I COULD SOLVE MANY PROBLEMS THAT I FACED WITH FILES

    • @CodeBeauty
      @CodeBeauty  2 ปีที่แล้ว

      I'm happy that I was able to help! Great job on your side as well! 🥰🥰

  • @bigbro_songz
    @bigbro_songz 2 ปีที่แล้ว +4

    Big Bro
    3 minutes ago
    I just love how you make coding so simple, Saldina. You have a great gift. Keep up the good work👏🏽👏🏽👏🏽

  • @priyanshusaxena7157
    @priyanshusaxena7157 3 ปีที่แล้ว +113

    My solution for the 1st challenge, converting a story to cipher and deciphering back the code in the console:
    #include
    #include
    #include
    using namespace std;
    int main()
    {
    fstream Myfile;
    // Taking the input string from the user
    string story;
    cout

    • @hbm293
      @hbm293 3 ปีที่แล้ว +4

      I think you can skip the "Converting the string to character array" part, as a string is basically already a character array (and there are ways to iterate over each character contained in the "string" object, as you also have used, so you could use directly that when you do the "int(...)" cast when writing into your file ).
      Also it's funny that since you concatenate the numbers in the file without any (non-number) separators between each of them, then when you read back your file you need to do the funny calculation.

    • @Ozonised
      @Ozonised 3 ปีที่แล้ว

      Hey just wanted to say thank you :) Your formula for deciphering the text helped me a ton. I was stuck getting my program to decipher the text but thankfully I discovered your comment and so the formula which provided a ton of help :)

    • @tapansonak1431
      @tapansonak1431 3 ปีที่แล้ว +2

      Hi can anyone explain me the working of the decypher loop. I am not quite getting it. I didn't get the formula
      num = num * 10 + (line [i]- '0');

    • @ahmedassal8710
      @ahmedassal8710 2 ปีที่แล้ว

      could you explain the formula
      num = num * 10 + (line[i] - '0' );

    • @jiimmyyy4929
      @jiimmyyy4929 2 ปีที่แล้ว

      Hey bro your code is awesome...Could you explain the calculations for the deciphering pls

  • @nopecharon
    @nopecharon ปีที่แล้ว +3

    I have an exam on Object oriented programming in less than 2 hours and these videos are a life saver :- )))

  • @abdelfetahissellal5265
    @abdelfetahissellal5265 3 ปีที่แล้ว +10

    Thanks Sister , for Muslims تقبل الله صيامكم

  • @satyaprakash2910
    @satyaprakash2910 3 ปีที่แล้ว +1

    I am a beginner starting from yesterday. Your videos are so easy to understand. I am going to watch all videos of your channel.
    i started from your beginner's playlist

  • @con_el_maestro3544
    @con_el_maestro3544 ปีที่แล้ว +1

    I cannot believe that I finally understand this, I'm gonna cry😭. Anyway let me get started with the homework you gave us

  • @nidadursunoglu6663
    @nidadursunoglu6663 ปีที่แล้ว

    normally these videos stress me out but your tone is so calming

  • @cac2244
    @cac2244 2 ปีที่แล้ว +2

    So friggin' refreshing...quick, to the point and extremely clear and logical... Nothing I could get from 200+ hours on various coding courses on Udemy.

  • @himanshurajpal7842
    @himanshurajpal7842 3 ปีที่แล้ว +8

    Saldina is back🎊🎊🎊🎊👌👌👌👌Namaste didi..... You are on time , Wednesday... I respect your discipline..... thankyou didi 👌

    • @CodeBeauty
      @CodeBeauty  3 ปีที่แล้ว +1

      I try to be disciplined 😁
      Thank you so much! 🙏

  • @gavinzengeni1749
    @gavinzengeni1749 ปีที่แล้ว +1

    Best teacher i ever had.
    Receive my greetings from Mozambique, Maputo.

  • @ghislain7282
    @ghislain7282 3 ปีที่แล้ว +15

    New video from codeBeauty notification, me on the road running as fast as I can to watch it. Thanks Saldina.

    • @CodeBeauty
      @CodeBeauty  3 ปีที่แล้ว +1

      You rock! Hope you'll like it! ☺️☺️

    • @ghislain7282
      @ghislain7282 3 ปีที่แล้ว

      @@CodeBeauty The only thing left is, finishing thoseTasks😊 I’ll always check them.

  • @weldejewergskahsay
    @weldejewergskahsay 8 หลายเดือนก่อน +1

    what a capable software engineer you are saldina.confidentialy i can say my teacher .thanks

  • @Islam36073
    @Islam36073 3 ปีที่แล้ว +6

    I am loving your way of teaching.

    • @CodeBeauty
      @CodeBeauty  3 ปีที่แล้ว +3

      Glad to hear that, thank you! ☺️☺️

    • @Islam36073
      @Islam36073 3 ปีที่แล้ว +1

      @@CodeBeauty 🙂

  • @alirezasoleimani2524
    @alirezasoleimani2524 2 ปีที่แล้ว

    One of the finest C++ Tutorials in TH-cam. Keep up the good job...

  • @Joinwithmeonmyjourney
    @Joinwithmeonmyjourney 3 ปีที่แล้ว +8

    Hi Saldina! Thanks for your great videos. Going to watch them all🙏

    • @CodeBeauty
      @CodeBeauty  3 ปีที่แล้ว

      That is awesome. You are so welcome! ☺️☺️

  • @tanayasharma7776
    @tanayasharma7776 3 ปีที่แล้ว +1

    one of the best channels for learning c++ ,thanks a lot .

  • @alphakalo5231
    @alphakalo5231 2 ปีที่แล้ว +8

    Thank you so much for your dedication put into these videos. They make learning c++ so much easier and enjoyable!

  • @hbm293
    @hbm293 3 ปีที่แล้ว +9

    3:20​ @CodeBeauty Yes the ".txt" extension is just to make Windows' shell use whatever default program to open these text files. But otherwise, any extension is good as well.
    The important point however is that, used as such, the fstream::open() function opens files in **text mode** by default, unless one ORs the second parameter (the mode) with ios::binary. This is important, because the default text mode is "translated" in the sense that depending on the platform you run the code, the end-of-line character being issued in the file will be different (
    on *nix,
    on mac,
    on Windows), even if you just use "
    " (without "
    ") in the code.

    • @CodeBeauty
      @CodeBeauty  3 ปีที่แล้ว +7

      Thanks for taking the time and contributing with your knowledge. ☺️
      I appreciate it and I'm sure that it will be helpful for anyone who is looking for tips and additional info in the comments! ☺️☺️

    • @hbm293
      @hbm293 3 ปีที่แล้ว

      Thanks! 😊

  • @glitch3417
    @glitch3417 3 ปีที่แล้ว +7

    Thanks Saldina,
    I was waiting for ages for this video.
    Actually I have a request to make, that if you find the time to do so, make an advance level video about file handling like about reading mixed data (numbers, alphabets, symbols, spaces, without new line) and taking out the specific type of data according to our desire and storing it in arrays, and also more info about functions like getline and putting some conditions in their parameters to ignore specific characters.
    Me and my friends will be waiting desperately. 🤞🏻🤞🏻

  • @tasharodriguez6881
    @tasharodriguez6881 2 ปีที่แล้ว +1

    I'm doing Files in class this week so this perfect
    Your truly amazing!! 😍😍😍😍
    Your my favorite coder!!

  • @leviyt2500
    @leviyt2500 3 ปีที่แล้ว +1

    thx mam i was struck in a problem and resolved it after watching the video you just save me from embarrassment infront of my fellows

  • @__hannibaal__
    @__hannibaal__ 2 ปีที่แล้ว

    Hi Saldana

    We can use some thing from number theory so as periodic function or bijective function (one to one )function
    If unsigned char c = 0 to 255; int crypto = 5 just add to c+crypto =c, some one didn’t now the code he can’t read it
    By reversing c=c-crypto for every char in file you can read it;
    This very simple way; we can construct very complex file crypting by use word as whole number like abc=505153; than use some
    Number theory of division and prime number…
    We can use congruence c=b[a] ; a

  • @LukeSkyWarrior
    @LukeSkyWarrior ปีที่แล้ว +2

    Great video! Much better than some sites explications that use other forms, and I'm not so good listening in english, but she speaks so well and I understand. It deserves my like

  • @larrylarragueta368
    @larrylarragueta368 3 ปีที่แล้ว +3

    I have enjoyed watching you videos. You are truly a good teacher. I have watched C++ file handling, but I would like you to go deeper into file handling with binary files. To be specific, I would like to see you talk about how to copy files in C++ from one place on your hard disk to another. Thank you very much for all of your hard work!

  • @agirlindenial8752
    @agirlindenial8752 2 ปีที่แล้ว +1

    i have my programming fundamentals final exam tomorrow, hoping for an A , file handling is the only topic left. I hope i ace it but incase i dont, at least i know i gave it my best and learned so much

  • @dannywijaya9291
    @dannywijaya9291 2 ปีที่แล้ว

    THANK YOU SOO MUCH.very comprehensive and easy to understand.been looking on how to read txt file into c++ for the past few days and no one could explain it as well as you.

  • @Mnerd7368_
    @Mnerd7368_ 3 ปีที่แล้ว +1

    Thanks. I have been struggling how to do this for several months.

  • @klasr5837
    @klasr5837 3 ปีที่แล้ว +4

    Excitedly waiting for your STL playlist... 😀

  • @noelhann5262
    @noelhann5262 3 ปีที่แล้ว +2

    Thank you and wish me luck on my exam in half an hour. I already understand pretty well everything we've learned so far except file reading and writing so lets hope I finally get it. I at the very least get it better than I did before. Thanks for the help

    • @CodeBeauty
      @CodeBeauty  3 ปีที่แล้ว +1

      Good luck 🤞🥰

    • @noelhann5262
      @noelhann5262 3 ปีที่แล้ว

      @@CodeBeauty thanks! I think I got the file reading question correct (it’s not graded but I checked it when I got home). It’s another thing I got wrong. Ah well. I got the file reading question right so that’s good 👍

  • @andregrobler4393
    @andregrobler4393 2 ปีที่แล้ว +1

    Thanks Saldina. Your lectures are excellent and presentation best I have seen on YT.

  • @mainamburu8036
    @mainamburu8036 2 ปีที่แล้ว +1

    absolutely beautiful ...finally understood file handling

  • @rohanijaz5874
    @rohanijaz5874 3 ปีที่แล้ว

    your lecture really helped me doing file handling , may allah grant u peace

  • @klasr5837
    @klasr5837 3 ปีที่แล้ว +1

    It's 1am midnight.. perfect time for code in c++. And files are everything for any project. Starting from config to header, src etc.

    • @CodeBeauty
      @CodeBeauty  3 ปีที่แล้ว +1

      So, a night owl 😁
      I also enjoy working at night. I believe I started filming this video around 1-2 am 😁🤭
      Enjoy!

    • @klasr5837
      @klasr5837 3 ปีที่แล้ว

      Hey saldina, it's a request, while explaining the function please explain the all parameters the function talking, all the return values and reasons so it will be beneficial. Examples Like if an functions return 0 on success and -1 on memory failure or -2 in permission errors

    • @klasr5837
      @klasr5837 3 ปีที่แล้ว

      @@CodeBeauty dark theme, c/c++/python, ide or terminal, notepad and pencil eraser, few hardware(atmega, Raspberry pi, stm,esp). All time love moments of life.
      Can u feel it... Can u feeeeeel it ?😂

  • @kingfederico9606
    @kingfederico9606 2 ปีที่แล้ว

    That is sweet, only 20 min and everything is clear!

  • @G00seLord
    @G00seLord ปีที่แล้ว

    thank you so much, it's so hard to find good answers sometimes even for the simplest of coding questions, you just saved me a lot of headache

  • @b0neless437
    @b0neless437 ปีที่แล้ว

    Saved my life for this assignment, thank you!

  • @seancampbell1682
    @seancampbell1682 หลายเดือนก่อน

    Wow, you truly are a code beauty! Thank you for this video, it was an excellent explanation of read/write into text files! Subscribed, can't wait to see your other videos!

  • @kevmorake9636
    @kevmorake9636 หลายเดือนก่อน

    It's that time of the year again, 😅saving the semester. All thanks to code beauty

    • @CodeBeauty
      @CodeBeauty  หลายเดือนก่อน

      than you should check my Practical Programming Course at www.codebeautyacademy.com
      It is course in C# (not C++) but concepts that you learn as part of it are applicable on every programming language.
      We are building real desktop application and you will be learning alongside other students, with me as your personal tutor. With this you will also gain access to exclusive Discord community.
      I'll be happy to have you there. :)

  • @Lancelot251
    @Lancelot251 2 ปีที่แล้ว +1

    The answer to the ques 1 is this :
    #include
    #include
    #include
    using namespace std;
    int main()
    {
    fstream file;

    //user input
    string cont;
    cout

  • @ramagrawal1231
    @ramagrawal1231 3 ปีที่แล้ว +1

    hey saldina iam from free code camp your video was excellent

  • @guyjon_13
    @guyjon_13 2 ปีที่แล้ว +1

    Learned two things today. The word append and how to append a text file in c++. Thx.

  • @juanmiguelgomezmedina4153
    @juanmiguelgomezmedina4153 3 ปีที่แล้ว +16

    Gracias por la explicación, es clara y sencilla. Tus videos me son de mucha ayuda para aprender C++. Procuraré realizar las tareas que indicas. Un saludo desde Minatitlán, Ver. México.

    • @CodeBeauty
      @CodeBeauty  3 ปีที่แล้ว +5

      Hola Mexico! De nada, y muchos saludos! 🇲🇽💚🤍❤️

  • @guillermo5295
    @guillermo5295 3 ปีที่แล้ว +4

    I do really appreciate your time and effort. Thanks a lot for your content! You got the best channel on youtube to learn C++!!!

  • @imadsalem1446
    @imadsalem1446 3 ปีที่แล้ว

    Thank salinda for all the hard work you put in this channel .i'm imad from syria

  • @tarekkawarma6895
    @tarekkawarma6895 ปีที่แล้ว

    I swear you're better than my professor

  • @Fox_Gaming208
    @Fox_Gaming208 2 ปีที่แล้ว +1

    Most helpfull video EVER MADE! No books or documents or teaches can be compared to this! :D

  • @syedshah3040
    @syedshah3040 2 ปีที่แล้ว +1

    can you teach java please please please please..............
    you are the best teacher I ever seen

  • @apropo8868
    @apropo8868 9 หลายเดือนก่อน +1

    you explain really good and really easy to understand

  • @babitagurung6724
    @babitagurung6724 ปีที่แล้ว

    Thank you so much for making this wonderful video. I heavily code in java. I am taking an elective class that requires me to code in C++. I really needed this tutorial.

  • @SILX
    @SILX 3 ปีที่แล้ว +3

    YESSS these tasks are so good!

  • @paulferri6073
    @paulferri6073 3 ปีที่แล้ว +9

    Here is my solution to the second challenge with the text file. Please let me know if you see any optimization I could do, or any other modifications.
    #include
    #include
    #include
    #include
    #include
    #include
    //Structure to store one question and three answers
    struct Question{
    std::string question;
    std::array answer;
    int correct;
    Question(){}
    Question(std::vector parsedLine){
    question = parsedLine[0];
    answer[0] = parsedLine[1];
    answer[1] = parsedLine[2];
    answer[2] = parsedLine[3];
    correct = stoi(parsedLine[4]);
    }
    };
    //Parse the data in each line given a comma as a delimiter
    std::vector parseCommaDelimitedString(std::string line)
    {
    std::vector result;
    std::stringstream s_stream(line);
    while(s_stream.good()){
    std::string substr;
    getline(s_stream, substr, ',');
    result.push_back(substr);
    }
    return result;
    }
    int main()
    {
    //Initialization and input of questions, answers, and answer
    Question question[5];
    //Read and parse data from file using comma delimiter
    std::fstream myFile;
    myFile.open("paul.txt", std::ios::in);
    int j = 0;
    if(myFile.is_open()){
    std::string line;
    while(getline(myFile, line)){
    std::vector parsedLine = parseCommaDelimitedString(line);
    // Store data from file direct into structure
    question[j] = Question(parsedLine);
    j++;
    }
    }
    // Initialization of variables
    int userAnswer = -1;
    float total = 0;
    float PercentTotal = 0;
    int ansLow = 1;
    int ansHigh = 3;
    // Loop for five questions
    for(int i = 0; i < 5; i++)
    {
    //Print out question
    std::cout = 5){
    std::cout

  • @NoobLinus
    @NoobLinus 10 หลายเดือนก่อน

    nice video, helped me a lot before the exam for revision

  • @rahmasamy7463
    @rahmasamy7463 3 ปีที่แล้ว +2

    you are my fav at all u are wonderful !!

  • @hassanjaveed2168
    @hassanjaveed2168 2 ปีที่แล้ว

    Hey, Ma'am Saldina your teaching style is very beautiful 😍 and this video is very helpful to me. I request to make one video on Matrix with file handling.

  • @shdyo
    @shdyo 8 หลายเดือนก่อน +1

    This has been a great help once again, thank you!

  • @shakshi9108
    @shakshi9108 3 ปีที่แล้ว

    My college professor taught this and I was scratching my head and wasted time in so many videos ,now it's super clear,thanks👍
    One Q-why do we have to open it in file explorer?

    • @CodeBeauty
      @CodeBeauty  3 ปีที่แล้ว

      You don't. That is just the most common way I open files when I want to read or edit them 😃😃

  • @MoHazem2002
    @MoHazem2002 3 ปีที่แล้ว +2

    Thanks for your efforts Saldina! Really instructive content demonstrated simply and briefly.

    • @CodeBeauty
      @CodeBeauty  3 ปีที่แล้ว +1

      My pleasure! ☺️☺️

  • @chakt2772
    @chakt2772 3 ปีที่แล้ว +2

    Awesome explanation. Real beauty in teaching coding. Thanks for great work.

  • @zoraizsyed1910
    @zoraizsyed1910 2 ปีที่แล้ว

    You're so awesome! Thanks to your explanation I was able to get my class project done!

  • @sanamehdi7284
    @sanamehdi7284 2 ปีที่แล้ว

    All that I can say is thank you very much Saldina.

  • @JordantheComputerScientist
    @JordantheComputerScientist 2 ปีที่แล้ว +1

    Thank you so much. You just helped me pass.

  • @sam-fy3dh
    @sam-fy3dh 2 ปีที่แล้ว +1

    Very Helpfull videos! Understood a lot more, your way of explaining makes things so much easier to understand, would love to see a video about handling other files like json and csv files!

  • @anthisavvidou9830
    @anthisavvidou9830 2 ปีที่แล้ว

    can you explain how to add input from the user in a file?
    everything you said was really helpful!! I feel like I can actually understand most of the things now

  • @godfreymukondo6856
    @godfreymukondo6856 2 ปีที่แล้ว +1

    Very nice you are really a good teacher💯

  • @asgm1382
    @asgm1382 2 ปีที่แล้ว +1

    Amazing video as always, thank you for inspiring others to code. Much love from USA :)

  • @micksail3341
    @micksail3341 2 ปีที่แล้ว

    I was looking for a C++ basic file process video. Thank you for your time on making this video. Again Thank You and God Bless, Take care..........end of lline....

  • @watchandenjoy1043
    @watchandenjoy1043 3 ปีที่แล้ว

    And one thing more you are software engineer I am also I this field but as a student so knowledge from you about about experience in detail is helpful thank you

  • @shakeebahmed7246
    @shakeebahmed7246 3 ปีที่แล้ว

    I always eager to watch your video. Finally I learned the c++ and got a job lately. Thank you so much for your beautifull yet comprehension videos.

    • @CodeBeauty
      @CodeBeauty  3 ปีที่แล้ว +1

      You got this!
      I'm so proud of you!🥰🥰

  • @matijaxzivkovic8843
    @matijaxzivkovic8843 3 ปีที่แล้ว +1

    Saldina is best girl on whole TH-cam!

  • @lawrencemiao4781
    @lawrencemiao4781 2 ปีที่แล้ว

    Thanks for the video, now I can survive CS class.

  • @attila6042
    @attila6042 3 ปีที่แล้ว

    thank you very much!
    you have been very clear, the method you have shown is also the most "compact" I have foundd

  • @wasimkhan-th1it
    @wasimkhan-th1it 3 ปีที่แล้ว +1

    Thank you maam thank you thank you very much same timing I m already working on it but no much understand this topic after this video I clear my concepts thank you thank you much

  • @jeffreyabillion4137
    @jeffreyabillion4137 3 ปีที่แล้ว +1

    Task 1
    //I'm still a first-year student sorry for my codes and btw your videos helped me a lot thank you so much.
    #include
    #include
    using namespace std;
    int main() {
    fstream diaryFile;
    diaryFile.open("diary.txt", ios::in);
    if (!diaryFile) {
    cout > fileContents)
    {
    cout

    • @becolex1161
      @becolex1161 2 ปีที่แล้ว

      what to do if file is not created or opening

  • @timyrasegty7857
    @timyrasegty7857 3 ปีที่แล้ว +9

    It's magnificent!

    • @CodeBeauty
      @CodeBeauty  3 ปีที่แล้ว

      You are so welcome! 🙏

  • @hugusACFgugaefgo
    @hugusACFgugaefgo 3 ปีที่แล้ว

    Your videos are the best explaining that you could find on YT. There are examples and exercises to train you. Btw: will you do videos to show the solutions at your tasks?

    • @CodeBeauty
      @CodeBeauty  3 ปีที่แล้ว +1

      It depends if people want me to do it 😁😁
      I just reviewed someone's code, and it has a very useful and interesting solution for the homework task. It is in the pinned comment.
      You can check it out if you need help, but can also solve it in your own way. ☺️☺️

  • @aliafzal3029
    @aliafzal3029 3 ปีที่แล้ว +1

    Heyyy ... u r best ✨💜 Thanku for teaching us while u have buzy routine really apreciate this😊

    • @CodeBeauty
      @CodeBeauty  3 ปีที่แล้ว +1

      Thanks, that's so nice of you! ❤️❤️

  • @n.aliamiri6277
    @n.aliamiri6277 2 ปีที่แล้ว +1

    I have thoroughly enjoyed many of your videos on C++ and I am continuing with your 10 hr full course. Recently, I went through your video of file operations. I found it to be quite simplistic. I would like to design Harry Markovitz's mean-variance analysis of stocks to determine the best weighting of DJIA stocks. To do that, I have a file with 31 records, with each record taking up one line. First data is the ticker symbol, and the next 260 pieces of data are the weekly closing prices of that stock (or index), and then I would like to save the next 5 slots for calculated data. If I have these in one text file. What would be the data structure like for each record? How can I read it into my variable in my program? How can I linefeed after reading one line? After reading the data into the program, comes CPU and memory intensive work of manipulating the data, sorting the result, and then writing it into a new text file.

  • @heikin5562
    @heikin5562 11 หลายเดือนก่อน

    Thank you soo much for this.. The explanation was amatuer friendly.. so it was easy to understand

  • @abdulrabazfar8852
    @abdulrabazfar8852 3 ปีที่แล้ว

    This was awesome but can you please do more videos regarding reading from DIFFERENT TYPES of files. Thank you

  • @denisg2000
    @denisg2000 2 ปีที่แล้ว

    Great video!!! This helped my with my final project. Thank you.

  • @oliverarnold6368
    @oliverarnold6368 10 หลายเดือนก่อน +1

    i wanty to know why we include system("paused>0")

  • @addisuyoutoubechannel8404
    @addisuyoutoubechannel8404 2 ปีที่แล้ว

    thank you saldina i have enjoyed this video please give other video for next time about classes and structures in c++.
    good time every time

  • @nirajnaik8254
    @nirajnaik8254 ปีที่แล้ว +1

    Can you please make a video on binary files as it would be really helpful 💓

  • @senalshamika9426
    @senalshamika9426 3 ปีที่แล้ว +1

    Saldina U saved my day. Thank you

  •  3 ปีที่แล้ว

    your video helps me for better understanding thankuu

  • @shortput
    @shortput ปีที่แล้ว +1

    Great job going through i/o that was helpful.

  • @EveryThing-zj1us
    @EveryThing-zj1us 2 ปีที่แล้ว +1

    Thank you pretty much, This video makes me feel happy.

  • @emreserdan4679
    @emreserdan4679 2 ปีที่แล้ว

    Very well lesson.I hope,I get high point to exam.Thnx...

  • @Pablex3D
    @Pablex3D ปีที่แล้ว

    Thank you very much! Now I can make my silly little calculator that remembers numbers 😊