Difference between r+,w+ and a+ mode (with example) | CBSE Class 12 | File Handling

  Рет қаралды 49,263

Swati Chawla

Swati Chawla

Күн бұрын

Пікірлер: 190
@Aditi_1319
@Aditi_1319 4 жыл бұрын
i'm literally regretting that why i didn't found your channel before....you're the best cs teacher on KZbin....thank you so much mam....
@SwatiChawlaofficial
@SwatiChawlaofficial 4 жыл бұрын
Wow, thank you! Keep watching and sharing with others..
@cheshtabatra1828
@cheshtabatra1828 3 жыл бұрын
Me too ☹️☹️☹️
@thehitlists5495
@thehitlists5495 3 жыл бұрын
Best computer teacher of the world!!!!
@anushkabhatt4688
@anushkabhatt4688 2 жыл бұрын
Practicals are the most important thing we need in computer science, and you are explaining them so patiently and effectively! Thank you so much mam!!!👍👏 More power to you!
@SwatiChawlaofficial
@SwatiChawlaofficial 2 жыл бұрын
Thanks and Welcome
@aryyann05
@aryyann05 2 жыл бұрын
Ma'am YOU R THE BEST, FINALLY MY CONFUSION IS CLEAR!! YOU ARE A SAVIOUR TO US COMPUTER SCIENCE STUDENTS!! KEEP UP THE GOOD WORK
@SwatiChawlaofficial
@SwatiChawlaofficial 2 жыл бұрын
Thanku so much 🙏🏻🙂
@vanshikarathor1072
@vanshikarathor1072 3 жыл бұрын
Best cs content can ever be made on youtube with this much of perfection and great explanation...thanks a lot mam...soo helpful it is🙏
@SwatiChawlaofficial
@SwatiChawlaofficial 3 жыл бұрын
Glad to hear this... Thanku so much...😊
@panda-yq7bo
@panda-yq7bo Жыл бұрын
Mam in w+ mode the file pointer is at beginning of the file because w mode will delete the previous data in the file.. 2:43
@krishnaprasadswain7010
@krishnaprasadswain7010 Жыл бұрын
Yes bro .... also i performed an practical in a+ mode to first read the file then it showed blank string that means in a+ mode the file pointer should be at the end of the file...if it would be in the begging of the file it would return the content...
@AMITSINGH-oz3gv
@AMITSINGH-oz3gv 3 жыл бұрын
Thank you so much ma'am . I'm stuck up in this topic , searched many of the vedios to clear my concepts . But when i started to saw your lectures seriously now I'm enjoying this subject . THANKS A LOT .....
@SwatiChawlaofficial
@SwatiChawlaofficial 3 жыл бұрын
Glad to hear that Thanku..
@pratyushkumar6343
@pratyushkumar6343 3 жыл бұрын
if teaching and making things understand is an art ,then u r the greatest artist
@SwatiChawlaofficial
@SwatiChawlaofficial 3 жыл бұрын
so nice of you.....thanku so much...
@simran8419
@simran8419 4 жыл бұрын
Ur expalanation is just great mam. I will recommend ur channel to my friends also . Thanks mam . Its really very helpful.
@SwatiChawlaofficial
@SwatiChawlaofficial 4 жыл бұрын
Thanks a lot
@navjot4685
@navjot4685 4 жыл бұрын
Army??
@simran8419
@simran8419 4 жыл бұрын
@@navjot4685 yep 💜
@jaiprakashrajFf09
@jaiprakashrajFf09 3 жыл бұрын
🤘🤘HURRAY !!! ALL CONCEPTS ARE CLEAR THANK YOU SO MUCH MA'AM 🤟🤟
@SwatiChawlaofficial
@SwatiChawlaofficial 3 жыл бұрын
Most welcome 😊
@shreykabir
@shreykabir 2 жыл бұрын
Best teacher on yt .... thnx a lot maam
@SwatiChawlaofficial
@SwatiChawlaofficial 2 жыл бұрын
Thanks and Welcome
@Shubham_Thakurr8
@Shubham_Thakurr8 3 жыл бұрын
Thank u so much maam seriously from heart. Best teacher i found on utube till now
@SwatiChawlaofficial
@SwatiChawlaofficial 3 жыл бұрын
Thanks a ton
@rasha1255
@rasha1255 3 жыл бұрын
This. Is. The. BEST. I WAS FINDING IT SO HARD TO UNDERSTAND CS AND I FOUND YOUR CONTENT. This is the best! Thanks a lot!
@SwatiChawlaofficial
@SwatiChawlaofficial 3 жыл бұрын
Glad to hear this !!! Thanku so much... Keep watching
@AmanKumar-hk1iy
@AmanKumar-hk1iy 3 жыл бұрын
mam ur teaching style is simple and effective 🥳
@SwatiChawlaofficial
@SwatiChawlaofficial 3 жыл бұрын
Thanks a lot 😊
@princerajput1503
@princerajput1503 3 жыл бұрын
you such a helorious i love you the way u teach us its been so pleasure and after many videos and i waste my time before 4 days to understand this but being with u just in 19 mins i learn everything
@SwatiChawlaofficial
@SwatiChawlaofficial 3 жыл бұрын
Thanku so much... Keep watching
@rachitsingh7014
@rachitsingh7014 11 ай бұрын
Mam Google say that When you open a file in 'w+' mode in Python, the file pointer is initially positioned at the beginning of the file, so the position is 0. Keep in mind that 'w+' mode truncates the file, so any existing content will be overwritten.
@AMITSINGH-oz3gv
@AMITSINGH-oz3gv 3 жыл бұрын
SERIOUSLY GUYS, 1 LIKE ON THE BEHALF OF SUCH A WONDERFUL TEACHER , WHO IS TEACHING US FREE OF COST AND BUILDING OUR CONCEPTS .
@SwatiChawlaofficial
@SwatiChawlaofficial 3 жыл бұрын
Thanku so much for your support and appreciation... God bless u..
@Iam_Royal_SweetySK
@Iam_Royal_SweetySK 10 ай бұрын
Thank u thank u so much ma'am....aap bohot achhi teacher ho seriously mere doubts bohot achhe se clear ho rhe h ❤ 🥺
@SwatiChawlaofficial
@SwatiChawlaofficial 10 ай бұрын
Thanks... Keep Watching
@prakritishree6054
@prakritishree6054 3 жыл бұрын
Thank you so much ma'am . All my doubts were cleared. Really awesome explaination😀
@SwatiChawlaofficial
@SwatiChawlaofficial 3 жыл бұрын
Thanks and Welcome
@ranjankumaryadav4906
@ranjankumaryadav4906 Жыл бұрын
i struggled in class 11th after taking cs now i feel like i came to the right place for not ending up like class 11th
@SwatiChawlaofficial
@SwatiChawlaofficial Жыл бұрын
Thanks Keep Watching
@geetanjalihitech8752
@geetanjalihitech8752 Жыл бұрын
I'm very Thankful to you. Just crystal clear concept.❤
@SwatiChawlaofficial
@SwatiChawlaofficial 11 ай бұрын
You're most welcome
@adminO111
@adminO111 Жыл бұрын
you are the best mam
@SwatiChawlaofficial
@SwatiChawlaofficial Жыл бұрын
Thanks a lot
@ankithashet9168
@ankithashet9168 4 жыл бұрын
Thank you so much ma'am tmrw's my exam and i found your today ....but will watch your videos before boards
@SwatiChawlaofficial
@SwatiChawlaofficial 4 жыл бұрын
Great 👍
@afreenzaha649
@afreenzaha649 4 жыл бұрын
Mam you are too good👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍 Thank you mam . Keep uploading all videos. Thank you
@SwatiChawlaofficial
@SwatiChawlaofficial 4 жыл бұрын
Thanks a lot 😊 Already completed the curriculum....will upload more....plz check the playlists of all the chapters..
@adityaagarwal636
@adityaagarwal636 3 жыл бұрын
WHY HAVE THE 3 VIEWERS DISLIKE THIS NICE EXPLINATION??!
@chococandy8009
@chococandy8009 4 жыл бұрын
Thanku ma'am. All concepts are now cleared.
@SwatiChawlaofficial
@SwatiChawlaofficial 4 жыл бұрын
Most welcome 😊
@chococandy8009
@chococandy8009 4 жыл бұрын
@@SwatiChawlaofficial Ma'am i am making a tkinter GUI project for CS class 12th and i am facing problem in adding images in the different frames. The problem is that the image is not showing instead a white window is showing. I have checked my code and watched multiple KZbin videos but i am not able to find the solution of my problem. Plz help me.
@SwatiChawlaofficial
@SwatiChawlaofficial 4 жыл бұрын
from tkinter import * from PIL import ImageTk, Image root = Tk() def open_img(): global img path = r"C:\.....\\" img = ImageTk.PhotoImage(Image.open(path)) panel = Label(root, image=img) panel.pack(side="bottom", fill="both") but1 = Button(root, text="click to get the image", command=open_img) but1.pack() root.mainloop() If u r using a variable in a function as local..make it global
@rajdeep55209
@rajdeep55209 4 ай бұрын
mam b is for binary not for text file 0:32
@utkarsh_got_no_nekogf
@utkarsh_got_no_nekogf Жыл бұрын
Huh, python is soooooo boring when you have got jee mains exam 10 days after😩😩😩 mann nhi lag rha padhne mein procrastination at its peak...huh huh huh huh !!!!!! Btw appki sari video bhut concise aur acchi hai mam
@gud_boi26
@gud_boi26 5 ай бұрын
you are littt very good teacher
@SwatiChawlaofficial
@SwatiChawlaofficial 5 ай бұрын
Thanks
@saqibullah7286
@saqibullah7286 Жыл бұрын
Mam alot of Love from Pakistan 🇵🇰🇮🇳💕..You make things very clear and easier ❤️❤️🥰
@SwatiChawlaofficial
@SwatiChawlaofficial Жыл бұрын
Thanku so much 🙏🏻🙂
@ayushjaiswal.
@ayushjaiswal. 4 жыл бұрын
Awesome vedio ma'am, shared the channel with everyone 😊😊
@SwatiChawlaofficial
@SwatiChawlaofficial 4 жыл бұрын
Thanku so much for ur support.. Keep watching
@cheshtabatra1828
@cheshtabatra1828 3 жыл бұрын
HUGE RESPECT! MAM THANK YOU
@SwatiChawlaofficial
@SwatiChawlaofficial 3 жыл бұрын
Thanks and Welcome...
@crazysunny5447
@crazysunny5447 3 жыл бұрын
W+ mode jiddi h 🤣🤣 khuch Karo ya na Karo ma to sbko hta ke khud ko show krunga...😂😂😂 Nice mam...thanku so much 👍👍 for this content this helps me a lot....🌈🥳
@SwatiChawlaofficial
@SwatiChawlaofficial 3 жыл бұрын
My pleasure Keep watching
@PriyanshuDhami-ch1sj
@PriyanshuDhami-ch1sj 3 жыл бұрын
Mam you are pro in python🔥🔥
@SwatiChawlaofficial
@SwatiChawlaofficial 3 жыл бұрын
Glad to hear this.. Thanku so much...🙏🏻😊
@PriyanshuDhami-ch1sj
@PriyanshuDhami-ch1sj 3 жыл бұрын
@@SwatiChawlaofficial mam one day u will be no.1 tutor of CS on KZbin
@SwatiChawlaofficial
@SwatiChawlaofficial 3 жыл бұрын
Thanku soo much...🙏🏻😊
@15_prachiaggarwal8
@15_prachiaggarwal8 4 жыл бұрын
Thanks for this amazing answer and explanation ❤️
@SwatiChawlaofficial
@SwatiChawlaofficial 4 жыл бұрын
Welcome
@tanushrisaha5978
@tanushrisaha5978 3 жыл бұрын
Que. What is the difference between r+ and w+ modes? a. no difference b. in r+ the pointer is initially placed at the beginning of the file and the pointer is at the end for w+ c. in w+ the pointer is initially placed at the beginning of the file and the pointer is at the end for r+ d. depends on the operating system If you can please explain this question and what will be the correct option
@SwatiChawlaofficial
@SwatiChawlaofficial 3 жыл бұрын
b
@tanushrisaha5978
@tanushrisaha5978 3 жыл бұрын
@@SwatiChawlaofficial but w+ the pointer is placed at the beginning while overwriting and writing the text
@tanushrisaha5978
@tanushrisaha5978 3 жыл бұрын
file=open('letter.txt','w+') print(file.tell()) #0 print(file.write("hi")) print(file.tell()) #2
@aryyann05
@aryyann05 2 жыл бұрын
@@tanushrisaha5978 WATCH THE VIDEO
@guru7514
@guru7514 3 жыл бұрын
Saraswati Ji padha rahi hain file handling me main ab master ho gya. 🌷
@SwatiChawlaofficial
@SwatiChawlaofficial 3 жыл бұрын
Thanku so much.. You made me smile today !!!! 😊
@xhjxccc5850
@xhjxccc5850 3 жыл бұрын
Mam very good video thank you a lot 🔥🔥
@SwatiChawlaofficial
@SwatiChawlaofficial 3 жыл бұрын
Thanks and Welcome
@himanshupandit6393
@himanshupandit6393 9 ай бұрын
Thank you mam ❤
@SwatiChawlaofficial
@SwatiChawlaofficial 9 ай бұрын
Most welcome 😊
@anandpandey9708
@anandpandey9708 4 жыл бұрын
Ma'am ur examples make so easy to understand the concepts..!! #interesting_cs_.! Thank you so much for ur wonderful explanations..!,
@SwatiChawlaofficial
@SwatiChawlaofficial 4 жыл бұрын
Glad u like it.. Thank You..🙏🏻😊
@akhilbansal4849
@akhilbansal4849 4 жыл бұрын
Please provides notes also mam Great lectures great content Really appreciate you hard work ❤️
@SwatiChawlaofficial
@SwatiChawlaofficial 4 жыл бұрын
Sure... You can enjoy special perks by joining the membership. Have a look at this. kzbin.info/door/2vH9rqGh-fJELF8acGfBdwjoin
@selvaunofficial4677
@selvaunofficial4677 4 жыл бұрын
Mam i don't know hindi. So plss reduce those Hindi word as u can possible Overall videos are too good 👌
@SwatiChawlaofficial
@SwatiChawlaofficial 4 жыл бұрын
Sure. Thanks
@xraa1101
@xraa1101 2 жыл бұрын
ur so good mam thanks a lot \
@SwatiChawlaofficial
@SwatiChawlaofficial 2 жыл бұрын
Thanks and Welcome
@dipamonideka1296
@dipamonideka1296 4 жыл бұрын
Very good explanation
@SwatiChawlaofficial
@SwatiChawlaofficial 4 жыл бұрын
Thanku so much... Keep watching
@Sourab_kumar_
@Sourab_kumar_ Жыл бұрын
I make notes from slide because i have not much money to buy our perks😊
@Sidemen-ty4in
@Sidemen-ty4in Жыл бұрын
mam if i start c.s from now how many videos should i watch in one day to complete it for class 12 boards which will held in 15 feb
@abhijitzende7292
@abhijitzende7292 3 жыл бұрын
Thanks ♥️
@SwatiChawlaofficial
@SwatiChawlaofficial 3 жыл бұрын
You're welcome 😊
@abhijitzende7292
@abhijitzende7292 3 жыл бұрын
@@SwatiChawlaofficial thank you mam you have saved lots of time
@SwatiChawlaofficial
@SwatiChawlaofficial 3 жыл бұрын
@@abhijitzende7292 thanks n welcome
@nagarajanm2378
@nagarajanm2378 3 жыл бұрын
Inputfile: text.txt Hai python Welcome to cs Programfile: fobj=open("text.txt",'r+') v=fobj.read(5) fobj.write("india") fobj.close() I got the output in file " india" appended at end. But , I did read(5). Why it is going to at end? Instead of write() , if I use read(5) it will read "ython". But, why "india" is not overwrites on "ython"?
@UnknownNews
@UnknownNews 2 жыл бұрын
I was searching CUET Computer Science. Thank God finally I found you but I've only 15 days. Let's see what happens 😐
@SwatiChawlaofficial
@SwatiChawlaofficial 2 жыл бұрын
Please check out this playlist CUET Computer Science: kzbin.info/aero/PL5Raijva2y4S9antuWCllMB5ff-gCoP72
@indiranamasivayam9174
@indiranamasivayam9174 2 жыл бұрын
In Sumita Arora Page 205, it is given that position of file pointer is in the beginning of file for w+ which is contrast to your video, Then is that wrong mam
@SwatiChawlaofficial
@SwatiChawlaofficial 2 жыл бұрын
No..both are correct... Reason being that when we open the file in w+ mode, initially file will be blank..so in bkank file pointer is at beginning or end .. it's one and the same thing...
@aashreyadeolalikar5961
@aashreyadeolalikar5961 2 жыл бұрын
Amazing
@SwatiChawlaofficial
@SwatiChawlaofficial 2 жыл бұрын
Thanks
@jojikuriakose6388
@jojikuriakose6388 4 жыл бұрын
Ma'am , in R+ mode , if we write first, it is overwriting data in the beginning? f= open("data.txt") f.write("today") f.seek(0) print(f.read()) Also in the following code , "today " is written to the end of file instead of after first 2 characters. why ma'am? f= open("data.txt") print(f.read(2)) f.write("today") f.seek(0) print(f.read())
@HimaniStudies
@HimaniStudies 11 ай бұрын
In my case it's totally overwriting the file content
@aryansachan3268
@aryansachan3268 4 жыл бұрын
Ma'am, please clear one doubt: I have used print(f.read()) before using the print(f.write()) method, and my file has some data but in output that data is not displayed by using "w+" mode. Why that initial data is not printed in the output
@SwatiChawlaofficial
@SwatiChawlaofficial 4 жыл бұрын
because...when we open the file in w+ mode...it overwrites the previous content...that's why,it's generally said.... w+ mode : first write then read...
@aryansachan3268
@aryansachan3268 4 жыл бұрын
@@SwatiChawlaofficial okay ma'am, I understood Thank you.
@riyasingh4196
@riyasingh4196 4 жыл бұрын
Thank u so much mam
@SwatiChawlaofficial
@SwatiChawlaofficial 4 жыл бұрын
Welcome..🙏🏻😊 Keep watching 👍🏻
@huo3gaming
@huo3gaming 3 жыл бұрын
great video maam it was extremely helpful.Maam is it possible for you to share the ppt you made on this chapter please.
@SwatiChawlaofficial
@SwatiChawlaofficial 3 жыл бұрын
Sure..You can enjoy special perks by joining the membership. Have a look at this. kzbin.info/door/2vH9rqGh-fJELF8acGfBdwjoin
@gyankabhandar9329
@gyankabhandar9329 3 жыл бұрын
Ma'am w+ mai file pointer beginning se start kyo nhi ho rha hai because ismein to agar file exist kar rahi hai to overwrite karta hai and nhi hai to create karta hai to pointer to donon case ismein beginning mein hona chahie
@SwatiChawlaofficial
@SwatiChawlaofficial 3 жыл бұрын
in w+ mode, it will overwrite the existing content..... means in beginning no data will be there in the file... so beginning and end...same thing..
@p09m21
@p09m21 4 жыл бұрын
Nice
@SwatiChawlaofficial
@SwatiChawlaofficial 4 жыл бұрын
Thanku...🙏🏻😊
@nandiniverma1851
@nandiniverma1851 3 жыл бұрын
Thank u so much mam ❤️....Loved ur teaching ❤️....Mam I just wanted to know if u upload the pdf notes for the same ?
@SwatiChawlaofficial
@SwatiChawlaofficial 3 жыл бұрын
Sure..You can enjoy special perks by joining the membership. Have a look at this. kzbin.info/door/2vH9rqGh-fJELF8acGfBdwjoin
@nandiniverma1851
@nandiniverma1851 3 жыл бұрын
@@SwatiChawlaofficial Ok....thank u mam😊
@sagarkakas9570
@sagarkakas9570 3 жыл бұрын
thanku mam
@SwatiChawlaofficial
@SwatiChawlaofficial 3 жыл бұрын
Welcome
@shivasundari2804
@shivasundari2804 Жыл бұрын
Mam pls explain in English. We are from Tamilnadu. We follow your videos regularly. Pls
@SwatiChawlaofficial
@SwatiChawlaofficial Жыл бұрын
Thanks for your valuable suggestion... Actually getting requests for both English as well as Hindi that's why using bilingual...
@ssubhashini6121
@ssubhashini6121 3 жыл бұрын
Ma'am, what is the difference between a+ and r+ ? Also,In a+, can we read() before write()? Please respond ma'am 🙏
@modernkavi5484
@modernkavi5484 3 жыл бұрын
Mam I have a question that, if we do not use the seek function in a+ mode then what will be the output pls reply mam
@Kabutar-Science
@Kabutar-Science 2 жыл бұрын
Watch in 1.5x 🔥💫
@oceanhappiness7027
@oceanhappiness7027 4 жыл бұрын
r+ and a+ both modes are behaving similar while writing in files. Both are appending data so r+ should mean read and append instead of read and write
@SwatiChawlaofficial
@SwatiChawlaofficial 4 жыл бұрын
No.. In r+ pointer is at the beginning..where as this is not in the case with a+ Try to exexute practically to explore..
@oceanhappiness7027
@oceanhappiness7027 4 жыл бұрын
@@SwatiChawlaofficial yes ma'am got it. Thanks
@kartikyasharma6635
@kartikyasharma6635 3 жыл бұрын
A quick question . In w+ mode the pointer is also at begining as i have tried it practically. So please clarify this. On google it also states that pointer is at begining of the file.
@SwatiChawlaofficial
@SwatiChawlaofficial 3 жыл бұрын
yes..because when u open the file in w+ mode, it will overwrite the previous content...that means in the beginning my file will be empty (as it will be overwritten)...so for empty file. pointer can be at the beginning or at the end...
@RituSharma-fe4xp
@RituSharma-fe4xp 21 күн бұрын
Mam in which school you are teaching now
@utpalm9453
@utpalm9453 4 жыл бұрын
The output of both a+ and r+ mode is same. The difference b/w them is that in a+ mode the pointer is at the end of file whereas in r+ mode the pointer is at the beginning of the file. Is it correct ma'am?
@SwatiChawlaofficial
@SwatiChawlaofficial 4 жыл бұрын
r+ mode for reading and writing a+ mode for writing at end and reading Output will differ based on the position and mode of file pointer. Try to execute practically to explore..😊
@utpalm9453
@utpalm9453 4 жыл бұрын
@@SwatiChawlaofficial okay ma'am...😊
@dmop5071
@dmop5071 Жыл бұрын
Mam can this videos be used for boards 23-24? Because this yr some of the topics from this r not there
@SwatiChawlaofficial
@SwatiChawlaofficial Жыл бұрын
Yes
@justanillusion7864
@justanillusion7864 4 жыл бұрын
Mam Aapne toh 41 Videos Dali Hai File Handing ke playlist me toh kya sabhi File handing ki hai kya...
@SwatiChawlaofficial
@SwatiChawlaofficial 4 жыл бұрын
Yes..all are of File Handling... comprising contents, important Questions, programs, and Objective Type Questions..
@justanillusion7864
@justanillusion7864 4 жыл бұрын
@@SwatiChawlaofficial thank u mam For Confirmation...😊😊
@SanjeevSharma-ug6ed
@SanjeevSharma-ug6ed Ай бұрын
Mam w mode me bhi data overwrite hojyga me
@SwatiChawlaofficial
@SwatiChawlaofficial Ай бұрын
Yes
@BTSshortscorner
@BTSshortscorner Ай бұрын
a+ mode m pointer kaha hota h mam??
@SwatiChawlaofficial
@SwatiChawlaofficial 11 күн бұрын
End
@Shakshigajendra1
@Shakshigajendra1 3 жыл бұрын
Mam aap kaha s belong krtay h?
@RootGaurav
@RootGaurav 4 жыл бұрын
👌👌👍👍
@SwatiChawlaofficial
@SwatiChawlaofficial 4 жыл бұрын
🙏🏻😊 Thanku
@himanshusingh6317
@himanshusingh6317 4 жыл бұрын
Mam your all videos are amazing And mam I am just asking isit sufficient to watch your lectures and doing questions to score 95+.means all concepts are covered and only need to do question.
@SwatiChawlaofficial
@SwatiChawlaofficial 4 жыл бұрын
Yes...allmost all concepts are covered...only few are left..that also..i will upload... Solve more and more Questions to secure good marks
@Jitenderkumar-ob8wh
@Jitenderkumar-ob8wh 4 жыл бұрын
Ma'am but in my computer science book ( sumita arora) it's mentioned that in w+ mode if the file exist it will overwrite the data but you are telling it will add the data.what to do mam?
@SwatiChawlaofficial
@SwatiChawlaofficial 4 жыл бұрын
It will overwrite the previous data and writes the the new data
@Jitenderkumar-ob8wh
@Jitenderkumar-ob8wh 4 жыл бұрын
@@SwatiChawlaofficial ok ma'am thank you so much mam. You're doing a wonderful job.☺
@SwatiChawlaofficial
@SwatiChawlaofficial 4 жыл бұрын
Thanks for appreciation...🙏🏻😊
@sakshibhattad8933
@sakshibhattad8933 Жыл бұрын
Mam when we write in R+ mode , then why doesnt it overwrite
@shanithas4977
@shanithas4977 4 жыл бұрын
write a program to write those lines which have the character *' P'* from one text file to another text file.. Mam .., send the qnswr mam.. I tried but... def check(): f=open('plin.txt','r') f1=open('b.txt','w') while True : line=f.readline() if line==' ' : break if 'p' in line: f1.write(line) print(f1.read()) f.close() f1.close() check()
@SwatiChawlaofficial
@SwatiChawlaofficial 4 жыл бұрын
Check out this...for explanation kzbin.info/www/bejne/i2SmaWyXndOijtk Somewhat similar to ur one.
@indiranamasivayam9174
@indiranamasivayam9174 5 ай бұрын
will r+ not work in version 2.7 mam
@SwatiChawlaofficial
@SwatiChawlaofficial 5 ай бұрын
Use latest version
@YUVIKA_SISODIA
@YUVIKA_SISODIA 8 ай бұрын
mam pls use mike for recording ...it's a request
@SwatiChawlaofficial
@SwatiChawlaofficial 8 ай бұрын
Actually it's my old video...This issue is resolved in my new videos.... If possible for you, please check out some new videos and do let me know, if same issue is there or not.
@parasmagesh9000
@parasmagesh9000 3 жыл бұрын
Mam pls explain the output in 13.13 mins?? How it came
@VardhanMittal
@VardhanMittal 3 жыл бұрын
𝓒𝓵𝓮𝓪𝓻 𝓶𝓪𝓶 . 𝑀𝒶𝓂 𝒶+ 𝒶𝓃𝒹 𝒶 𝒷𝑜𝓉𝒽 𝒶𝓇𝑒 𝓈𝒶𝓂𝑒 𝓂𝑜𝒹𝑒.
@FearlessDeepak0
@FearlessDeepak0 3 жыл бұрын
Mam a+ mod mai pointer kaha hoga??
@SwatiChawlaofficial
@SwatiChawlaofficial 3 жыл бұрын
at the end
@omkarpathak6004
@omkarpathak6004 4 жыл бұрын
👍
@SwatiChawlaofficial
@SwatiChawlaofficial 4 жыл бұрын
🙏🏻
@sneha14166
@sneha14166 3 жыл бұрын
Mam please share the ppt also so that we can prefer it for notes
@SwatiChawlaofficial
@SwatiChawlaofficial 3 жыл бұрын
Sure..You can enjoy special perks by joining the membership. Have a look at this. kzbin.info/door/2vH9rqGh-fJELF8acGfBdwjoin
@VandanaSingh-vm5bl
@VandanaSingh-vm5bl 4 жыл бұрын
How we can delete the content from coding in file handling
@SwatiChawlaofficial
@SwatiChawlaofficial 4 жыл бұрын
kzbin.info/www/bejne/q5fdlpRjoM90bK8
@aishanasim1900
@aishanasim1900 4 жыл бұрын
💎💎💎💎💎💎
@SwatiChawlaofficial
@SwatiChawlaofficial 4 жыл бұрын
🙏🏻😊
@HINDI_WALI
@HINDI_WALI 12 сағат бұрын
seek kyu likha h? explanation please
@mitumonikalita4074
@mitumonikalita4074 4 жыл бұрын
Mam please can you provide the ppt of these videos?
@SwatiChawlaofficial
@SwatiChawlaofficial 4 жыл бұрын
Sure... You can enjoy special perks by joining the membership. Have a look at this. kzbin.info/door/2vH9rqGh-fJELF8acGfBdwjoin
@somilbansal8240
@somilbansal8240 4 жыл бұрын
😀
@ssubhashini6121
@ssubhashini6121 3 жыл бұрын
Ma'am, what is the difference between a+ and r+ ? Also,In a+, can we read() before write()?
@simonrajamburose361
@simonrajamburose361 3 жыл бұрын
Mam, if u don't mine convey the matter in english
@SwatiChawlaofficial
@SwatiChawlaofficial 3 жыл бұрын
actually getting requests for both English as well as Hindi..that's y using bilingual..
@indiranamasivayam9174
@indiranamasivayam9174 5 ай бұрын
in r+ mode in version 2.7 i get IOError
@SwatiChawlaofficial
@SwatiChawlaofficial 5 ай бұрын
Don't use version 2.7
@nagarajanm2378
@nagarajanm2378 3 жыл бұрын
Hi, I have doubt in file handling. How can I ask you? May I get your mail id?
@SwatiChawlaofficial
@SwatiChawlaofficial 3 жыл бұрын
You can ask your doubts in the comment section
@ganesanarunachalam4020
@ganesanarunachalam4020 2 жыл бұрын
Mam please explain in English fully Can't understand
@shabeenanafeeskhan1488
@shabeenanafeeskhan1488 2 жыл бұрын
i need notes
@SwatiChawlaofficial
@SwatiChawlaofficial 2 жыл бұрын
Sure..You can enjoy special perks by joining the membership. Have a look at this. kzbin.info/door/2vH9rqGh-fJELF8acGfBdwjoin
Tuna 🍣 ​⁠@patrickzeinali ​⁠@ChefRush
00:48
albert_cancook
Рет қаралды 130 МЛН
How Many Balloons To Make A Store Fly?
00:22
MrBeast
Рет қаралды 197 МЛН
C_121 File Handling in C - part 3 | Writing in a File in C Language
26:03
Jenny's Lectures CS IT
Рет қаралды 198 М.
File Handling in Python | Text Files | Class 12 Computer Science
54:24