Lecture 33 Reading from a file using fscanf function in C language Hindi

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

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

  • @RashmiKumari-ui2dj
    @RashmiKumari-ui2dj 7 лет назад +27

    i had joined c classes.. but still i was not able to understand it with valid reason. after watching these videos, c language seems easier than before. thank you so much sir. kash k mene ye channel pehle hi dekh liya hota

  • @hammadahmed1181
    @hammadahmed1181 6 лет назад +11

    Thanx sir love from Pakistan even my all uni mates watch your videos 👍👍👍

  • @shwetasingh7906
    @shwetasingh7906 7 лет назад +6

    it is very helpul for students
    thanku sir

  • @pranjalbankar8871
    @pranjalbankar8871 3 года назад +1

    Thank you sir, yours video are great, and shows your hard work 😇

  • @HareKrishna1358
    @HareKrishna1358 Год назад +1

    Sir for me you are litterally god i don't know how my doubts Resolve thanku so so much sir thanks

  • @subratkumaracharya7356
    @subratkumaracharya7356 3 года назад +2

    Thank u sir ❤️❤️ love from odisha

  • @atuljaiswal224
    @atuljaiswal224 3 года назад

    just to remind that even now these videos are like gems to most of us.

  • @honeygupta9869
    @honeygupta9869 8 лет назад +5

    Thank you for helping the people those who are not afford classes for language.You are true philanthropist.
    Sir, i have a question that if we want to read both verticle 10 20 and 30 and comma separator also.Is it possible.
    Thank you

  • @madhu-ki-duniyaofficial
    @madhu-ki-duniyaofficial 8 лет назад +5

    Hi, I made a program using fscanf, i made another variable to add three integer values.that varible is giving me a random value while I am using direct a+b+c it is giving me correct answer.Is there any relation FILE pointer to that variable.

  • @manishraj7455
    @manishraj7455 8 лет назад +1

    Sir,agar ho ske to random access of file ka bhi video upload kar digeye,I am enjoying your lecture very much ,without any huge effort ,I am understanding c language so easily.thank you sir.

  • @ketanmonga_km
    @ketanmonga_km 5 лет назад +2

    Sir if we want to read a unknown file's content then what should we do...please explain it with an example

  • @tanishsharma869
    @tanishsharma869 7 лет назад +3

    sir, i have a question, if we already have functions to read the file or write in file like fread(), fwrite(), then why we are using these fprintf(), fscanf()

  • @kashishshukla23
    @kashishshukla23 4 года назад +1

    awsm teaching...

  • @thefuntech2810
    @thefuntech2810 6 лет назад +2

    Sir aapne hame USh file se read karana sikha jiska content hame pata hai but if we want to read the content of any unknown file then how we read it please make a video on that topic
    Read a unknown file jiska content hame naa pata ho...

  • @madhu-ki-duniyaofficial
    @madhu-ki-duniyaofficial 8 лет назад +2

    Sir, I luv yr lectures very much.
    I made aprogram exactly like yrs. but i have got random values,why is it so?

  • @vishnumishracoding1189
    @vishnumishracoding1189 2 года назад

    U r best teacher sir

  • @ppkivines1149
    @ppkivines1149 6 лет назад +4

    Sir kya hum apne system me present songs coding ke through play kar skte hai with this file handling...

  • @quicksaver503
    @quicksaver503 3 года назад +1

    Sir plzz explain fseek,ftell rewind function also

  • @shubhammaske3504
    @shubhammaske3504 3 года назад +1

    File ke andar jakr direct data edit kr sakte hai aur modify kr sakte hai toh (read write mode ka use karke program me data update karne ka kya fayda Sir)

    • @itzmanny8905
      @itzmanny8905 3 года назад

      fprintf use karo write mode mai

  • @menashelijah4554
    @menashelijah4554 7 лет назад +3

    Sir, can you please give some idea on how we can prepare a single program in which we write to file and read from file. Thank You.

  • @rishitasingal7246
    @rishitasingal7246 5 лет назад +3

    sir there is not any lecture regarding how to modify or delete record in file, can u plz help

  • @anjalibala5371
    @anjalibala5371 6 лет назад +2

    Sir , if we want to read the numbers in a array...then what we will do??

    • @techsapmadeeasy
      @techsapmadeeasy 5 лет назад +1

      while((fscanf(fp,"%d",&a))>0)
      {
      arr[k]=a;
      k++;
      }
      Don't forget to initialize the value of k by 0.
      here 'a' is the int type of variable.
      Thanks :)

  • @sheelajain370
    @sheelajain370 4 года назад +2

    agar buffer character ki thi to usko integer format specifier use karte hue int banadiya

  • @sashaa8056
    @sashaa8056 5 лет назад +2

    In case we don't know what is the content in the file, we can read the entire file as a string.
    //here 100 is size of the character array str[100]
    while (fscanf_s(fp, "%s", str, 100) > 0)
    {
    printf("%s", str);
    }
    or we can make use of realloc, if we don't know the buffer we need to allocate
    while (fscanf_s(fp, "%c", str = (char*)realloc(str,1)) > 0)
    {

    printf("%c", str[0]);
    }

  • @itzmanny8905
    @itzmanny8905 3 года назад

    Thank you sir from 2021

  • @darshanraval8093
    @darshanraval8093 7 лет назад +1

    sir , agar hame pata nai he ki file me kya data he... or uska data hame fscanf() se print karana ho to ho shakta he ?

  • @abhishekkumarlala1280
    @abhishekkumarlala1280 6 лет назад +1

    thank you sir

  • @bisoothapa547
    @bisoothapa547 4 года назад

    lajabab

  • @JAKIRHUSSAIN-uj1qi
    @JAKIRHUSSAIN-uj1qi 5 лет назад +1

    Super

  • @anuragpandey4561
    @anuragpandey4561 4 года назад

    Thankyou sir

  • @authenticworld7271
    @authenticworld7271 4 года назад

    Thanks sir

  • @K-EE-ABHINAVKUMAR
    @K-EE-ABHINAVKUMAR 4 года назад

    How can we use scanf in while loop

  • @amaansiddiqui734
    @amaansiddiqui734 4 года назад

    ❤️❤️❤️

  • @nirajsingh6367
    @nirajsingh6367 3 года назад

    hello sir lecture7 ka part 2 nhi hai kya

  • @zaheer5787
    @zaheer5787 2 года назад

    Sir fseek() ka lecture kaha hai