Lecture 30 Writing file using fwrite function in C language Hindi

  Рет қаралды 131,079

MySirG.com

MySirG.com

Күн бұрын

Пікірлер: 68
@vineetsharma2163
@vineetsharma2163 6 жыл бұрын
Nice video AAP jaisa padate ho usse mera confidence level phle se jyada increase ho jata h thank you sir
@dancestudio-06
@dancestudio-06 4 жыл бұрын
🤣🤣🤪🤪
@techworld1534
@techworld1534 6 жыл бұрын
Your explaination is very understandable.
@rampraveshpandey8570
@rampraveshpandey8570 6 жыл бұрын
Sir you are best teacher in the world
@tanishbajpai9952
@tanishbajpai9952 7 жыл бұрын
a tons of thanks to you sir..the way you clear the concepts is just awesome & most cool thing is that..u are doing it in hindi..loved all of them..thanks a lot sir...
@srinivaslukka3303
@srinivaslukka3303 4 жыл бұрын
Your determination to spread ur knowledge is awesome sir 👏👏u will always be a great guru sir ☺️😊☺️
@shalinikatore1161
@shalinikatore1161 3 жыл бұрын
Sir really u have explained very simple way which we can understand. Thank u sir..
@priyaranjanbharti58
@priyaranjanbharti58 6 жыл бұрын
Nice explanation sir hatsoff
@anshulmangal2755
@anshulmangal2755 4 жыл бұрын
Nice explanation sir you are great teacher I find any language simple now👌👍👌👍👍
@CNILOYBARUA
@CNILOYBARUA 2 жыл бұрын
Genius sir great we need more
@kartickchandramanna267
@kartickchandramanna267 2 жыл бұрын
Excellent Lecture. Thank you sir 🙏🙏
@indresh_malviya
@indresh_malviya 8 жыл бұрын
very useful for all students..
@rishitasingal7246
@rishitasingal7246 6 жыл бұрын
Sir ur videos are awesome
@rajnish1002
@rajnish1002 3 жыл бұрын
for your explanation 👏👏👏👏
@vinayjangra1401
@vinayjangra1401 3 жыл бұрын
Great explanation ❤️
@sunziv01
@sunziv01 6 жыл бұрын
Thank you so much sir, you described very well.
@asthagoel6177
@asthagoel6177 5 жыл бұрын
I have a question Sir ,that at 17:15 how can float type (book price) store a string (book title) ?
@rahulkumarthakur_6631
@rahulkumarthakur_6631 5 жыл бұрын
Same doubt... Did you get your answer? Write back,please.
@snehchauhan8507
@snehchauhan8507 4 жыл бұрын
It will store ASCII value of 1st character i.e D
@onkardhandale4200
@onkardhandale4200 7 жыл бұрын
thanks sir,for explaining fflush() function.
@MohdKaif-yu8qr
@MohdKaif-yu8qr 3 жыл бұрын
sir fwrite ka use kr kr kya hum dot txt extantion use kr skhte h dot dat ke replace mein?
@lifeisnotarace3889
@lifeisnotarace3889 6 жыл бұрын
Sir when we do in general scanf then at that why this problem not created..that buffer is not created.... Like Scanf("%d",&a); Scanf("%d",&b); In this also /n will be left in the buffer....
@vedangkavathiya8426
@vedangkavathiya8426 4 жыл бұрын
Same doubt:(
@harshitbhargava6369
@harshitbhargava6369 4 жыл бұрын
we do not require a buffer here as we have no intention of saving the input value to the hard disk, and therefore, the input value is not saved due to which, when you run the program again, the user is always asked to enter a new value. Therefore, you only require a buffer at a place where you need to store the entered value.
@poojachitalkar9245
@poojachitalkar9245 6 жыл бұрын
😘😘
@karanmaurya2216
@karanmaurya2216 Жыл бұрын
Thankyou sir ji 🙏
@biswajitghosh7638
@biswajitghosh7638 4 жыл бұрын
❤️❤️❤️❤️
@shubhamthakur4945
@shubhamthakur4945 8 жыл бұрын
sir what is the difference between fputs and fwrite? can we write integer by using fputs function or this function is only to write characters?
@amaansiddiqui734
@amaansiddiqui734 4 жыл бұрын
❤️❤️❤️
@sairajdas6692
@sairajdas6692 7 жыл бұрын
Sir gets() k bad ek or fflush() q ni dale ?
@nikhilkhemchandani5991
@nikhilkhemchandani5991 5 жыл бұрын
bhai ek hi zarurat hoti hai
@negi_vipin
@negi_vipin 4 жыл бұрын
Because gets () function iself place the cursor to next line . But in case of scanf we have to press the enter key after the entered data ,to move the cursor into the next fresh line.
@anugrahchaturvedi6764
@anugrahchaturvedi6764 4 жыл бұрын
Sir 3rd argument ka kya meaning thi
@ShawnDypxz
@ShawnDypxz 3 жыл бұрын
The error is due to the first scanf. Scanf() takes in the characters/values from the buffer but leaves the ' ' in the input buffer. Then gets() reads the input buffer and there exist ' ' in the buffer. But ' ' is delimiter for gets(). So in the end, gets() doesn't put anything into the variable. Now, the buffer is empty. Whatever we type is read by the next scanf() function. For that, we have to know the behavior of every input function. The best thing to do is put this code after every scanf(). while(getchar()!=' '); getchar() will also read from input buffer one by one. When getchar() reads ' ' . The while loop closes. That leads to buffer being empty.
@dwitiasisodia1651
@dwitiasisodia1651 2 жыл бұрын
Sir record1 ka kya mtlb hai 3rd argument ka kya mtlb hai??
@abhishekjaiswal6492
@abhishekjaiswal6492 4 жыл бұрын
sir agar isko binary mode me open nhi krke normal way me open krte to??
@subhosaha184
@subhosaha184 4 жыл бұрын
sir I declare a string as char s[4] but i can 5 character as input using gets()....... how is it possible??
@PankajDas-mw4uq
@PankajDas-mw4uq 5 жыл бұрын
Sir agar ek se jyada record ho to kya hamein dono variable ka address btana pdega
@Compinfo-q5c
@Compinfo-q5c 6 жыл бұрын
Tysm sir😊
@aayushrjl
@aayushrjl 6 жыл бұрын
can we use fflush() after every scanf ??? will it create a problem ????
@utilitiesapp6715
@utilitiesapp6715 7 жыл бұрын
hi sir,sir can i get the the program of reading a raw file image and save it as bmp format file?...so if possible pls give me the program .....wishing the answer from u sir.....
@learner_jpr
@learner_jpr 8 жыл бұрын
sir fflush() mention karne ke baad bhi buffer empty nahi ho raha hai
@learner_jpr
@learner_jpr 8 жыл бұрын
+Saurabh Shukla #include struct book { int bookid; char title[20]; float price; }; int main() { FILE *fp; fp=fopen("f11.dat","wb"); struct book b1; printf("Enter Bookid, Title and Price of Books: "); scanf("%d",b1.bookid); fflush(stdin); gets(b1.title); scanf("%f",&b1.price); fwrite(&b1,sizeof(b1),1,fp); fclose(fp);
@learner_jpr
@learner_jpr 8 жыл бұрын
+Saurabh Shukla thanks sir
@rahuldevlenka505
@rahuldevlenka505 6 жыл бұрын
@@learner_jpr bro scanf("%d",b1.bookid); me '&' missing hai
@souvikmondal2748
@souvikmondal2748 6 жыл бұрын
I think sir in the code block is supported windows base c so int variables take 4 bytes also total 9 bytes
@piyush98182
@piyush98182 8 жыл бұрын
Sir .txt file tho suna tha lekin .dat file kiya hote hai??
@JP-qp9ht
@JP-qp9ht 7 жыл бұрын
google nhi h kya
@bishalroy4861
@bishalroy4861 6 жыл бұрын
Sir 100 ke bad kyu buffer me tha?
@sajankumar-re9cj
@sajankumar-re9cj 6 жыл бұрын
Sir kya hum file name ki jagah variable ka naam de skte hai jis variable me humne user se input krwaya hai.???
@sairajdas6692
@sairajdas6692 7 жыл бұрын
Hello Sir . Apny .dat file q bnay . iska kya purpose h ??
@yashsrivastav58
@yashsrivastav58 6 жыл бұрын
sir, please upload a video on how to check file is empty or not? i searched google but not understand the methods of doing this,
@programmingworld8946
@programmingworld8946 4 жыл бұрын
sir what is use of stdin and stdout
@shivamshukla9233
@shivamshukla9233 5 жыл бұрын
gets() does not work on text editor of ubuntu. so to remove this problem what should i do?
@anveshatagore542
@anveshatagore542 3 жыл бұрын
Fgets will wrk..use it instead..
@infinity8982
@infinity8982 Жыл бұрын
So late but it does work it just gives the warning.
@sumankhanal4607
@sumankhanal4607 5 жыл бұрын
When I entered the same code price didn't appear
@rambabupatidar6182
@rambabupatidar6182 5 жыл бұрын
use fflush after gets(b1.title);
@sumankhanal4607
@sumankhanal4607 5 жыл бұрын
Even usingFFlush(stdin) the price didn't appear on output
@PrinceKumar-kr1lg
@PrinceKumar-kr1lg 6 жыл бұрын
Sir Mene same program write Kiya lakin Mene jab complier pr display Kiya to price ki value -NAN show ho rhi h
@subhransusarangihappy8958
@subhransusarangihappy8958 6 жыл бұрын
fflush( ) use karne ke baad bhi data enter nehi ho paraha he
@sonujha766
@sonujha766 5 жыл бұрын
Where shoul i make this prgrm
@kyawn5115
@kyawn5115 5 жыл бұрын
codeblocks
@utilitiesapp6715
@utilitiesapp6715 7 жыл бұрын
i am using visual studio for this....
@sonujha766
@sonujha766 5 жыл бұрын
Anybody plzz tell me
@shyamkachhadiya4964
@shyamkachhadiya4964 6 жыл бұрын
wah kya likes hai 222 lul
@pawandev1876
@pawandev1876 3 жыл бұрын
❤️❤️❤️
@ankitajain6563
@ankitajain6563 5 жыл бұрын
Sir when we do in general scanf then why this problem not created..that buffer is not created.... Like Scanf("%d",&a); Scanf("%d",&b); In this also /n will be left in the buffer....
Lecture 31 Reading from a file using fread in C language Hindi
17:27
Lecture 29 Writing in a file using fputs in C Language Hindi
16:10
UFC 310 : Рахмонов VS Мачадо Гэрри
05:00
Setanta Sports UFC
Рет қаралды 1,2 МЛН
黑天使只对C罗有感觉#short #angel #clown
00:39
Super Beauty team
Рет қаралды 36 МЛН
So Cute 🥰 who is better?
00:15
dednahype
Рет қаралды 19 МЛН
Lecture 50 const in C Language Hindi
24:01
MySirG.com
Рет қаралды 98 М.
Lecture 25 Writing in a file in C Language Hindi
21:52
MySirG.com
Рет қаралды 223 М.
Lecture 27 Reading from a file in C Language Hindi
17:05
MySirG.com
Рет қаралды 176 М.
Learn English Stories | English Story Level 1 | Learn English
13:04
Word Wise English
Рет қаралды 320
Lecture 28 Reading from file using fgets in C Language Hindi
12:40
Lecture 18 Dynamic Memory Allocation in C Language Part 1 Hindi
19:43
Lecture 23 Preprocessor Commands in C Language Hindi
12:59
MySirG.com
Рет қаралды 153 М.
UFC 310 : Рахмонов VS Мачадо Гэрри
05:00
Setanta Sports UFC
Рет қаралды 1,2 МЛН