Reading a file in C++ - Stream-Based I/O part 6 of n - Modern Cpp Series Ep. 196

Поделиться
HTML-код
  • Опубликовано: 25 ноя 2024

Комментарии • 19

  • @VoidloniXaarii
    @VoidloniXaarii 2 месяца назад +3

    Another great lesson from the best c++ teacher on RUclips 🎉 谢谢 Vielen Dank!

    • @MikeShah
      @MikeShah  2 месяца назад +2

      Cheers, thank you for the kind words as always!

    • @VoidloniXaarii
      @VoidloniXaarii 2 месяца назад +2

      @@MikeShah a humble nothing compared to your kind+epic lessons as always, cheers 🥂 !

  • @mytech6779
    @mytech6779 2 месяца назад +2

    Something is amiss with the example at 16:00, none of the commas printed.
    (Pedantic aside that is probably optimized away and insignificant anyway: I would put them in as characters with ',' not strings "," )

    • @MikeShah
      @MikeShah  Месяц назад

      Good catch -- indeed should be single character. That's curious why they are not displaying otherwise!

    • @jameshansen801
      @jameshansen801 19 дней назад +1

      I was noticing that too. Could it also be because std::cout is being used to write out the 3 numbers for each line instead of actually writing the data to the file? That part was driving me crazy!

  • @potobill
    @potobill 2 месяца назад +1

    mike shah which keyboard do you use for these videos?

    • @MikeShah
      @MikeShah  2 месяца назад +1

      I have a System76 keyboard

  • @p39483
    @p39483 2 месяца назад

    Why check exists when is_open? Can a file be open for reading if it does not exist?

    • @MikeShah
      @MikeShah  2 месяца назад

      File could get deleted in between. In practice I'd check for existence before opening in the common case. 🙂

  • @yousseftayel8525
    @yousseftayel8525 2 месяца назад +1

    Hey mike how can I contact you?

    • @MikeShah
      @MikeShah  2 месяца назад

      E-mail is the preferred contact. Code related questions should be posted on the relevant video or otherwise on courses.mshah.io/ community.

    • @yousseftayel8525
      @yousseftayel8525 2 месяца назад +1

      @@MikeShah Hey Mike Just mailed You I hope It finds you well

    • @yousseftayel8525
      @yousseftayel8525 2 месяца назад

      @@MikeShah hey mike just to remind you,I am still waiting for your reply💙

    • @MikeShah
      @MikeShah  2 месяца назад +1

      @@yousseftayel8525 I did not receive any message

    • @yousseftayel8525
      @yousseftayel8525 2 месяца назад +1

      ​I am sure I send it to the right mail. Can you check your spam maybe I landed there ​@@MikeShah