Binary File Operations | Operations on Binary File in Python | File Handling | CBSE Class 12 CS

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

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

  • @preksha_pandya
    @preksha_pandya 3 года назад +54

    You are queen 👑 of computer science 😇

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

    Plz guys support her...she deserves more...for all her efforts and knowledge ❤️🙏

  • @arinbiswas4100
    @arinbiswas4100 11 месяцев назад +4

    Hereby I consider you as a god of explaining cs programs

  • @tushakaryana4994
    @tushakaryana4994 3 года назад +4

    Thank you so much mam tomorrow is my computer science practice exam. This video really helped me ♥️♥️

  • @shivamsalaria7487
    @shivamsalaria7487 4 года назад +9

    Mam U are jusst awesome.. The way u are teaching is extremely fabulous ❤️❤️🥰🥰..
    Mam, will you complete the whole syllabus of class 12 computer science ?

    • @SwatiChawlaofficial
      @SwatiChawlaofficial  4 года назад +7

      Thanku so much for your Golden Words..😊🙏🏻
      Definitely will cover whole syllabus..80% already completed.. after completion of whole syllabus..will upload important Questions and sample papers also ..
      Keep Watching 😊

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

      @@SwatiChawlaofficial m watching liking sharing mam.. 🥰

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

      Thanku..🙏🏻😊

  • @ShwetaSingh-gc9gp
    @ShwetaSingh-gc9gp 2 года назад +5

    Thank u so much mam
    Your video helps me a lot in project work and clearing my concepts

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

    One of the best video 📹 👏 for computer...
    MUST WATCH.....😀😀FOR YOUR COMPUTER 🖥 PROJECT
    THANK YOU MA'AM 😊

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

    thank you soo much mam,i learn for my board exam from u and i am grateful to you mam.

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

    thank you soo much mam ❤️ u r the best computer teacher..!!

  • @Adityakumar-jv4df
    @Adityakumar-jv4df 3 года назад +2

    A great video by great teacher,hatsoff to you . It helps to make my project easy .
    thankyou

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

      My pleasure...
      Keep watching

    • @Adityakumar-jv4df
      @Adityakumar-jv4df 3 года назад

      @@SwatiChawlaofficial mam please make similar video on how to make menu driven program, using python and mysql both

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

      ruclips.net/video/QjIqYbiVQuw/видео.html

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

    Excellent explanation madam thanks for your spending valuable time for us.

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

    This is amazing 😍😍
    Thanks you so much for your efforts 👍

  • @sarthakmhatre9b404
    @sarthakmhatre9b404 Месяц назад +2

    Thankyou ma'am 😊

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

    You are doing a great job mam....10000000likes for you....i watched your videos and found,why i didn't get it earlier.thnkyu so much mam.....please upload more and more important questipns for 2021 cs exams.

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

      Thanks a lot..
      Plz check the Playlists of all the chapters..
      There you will find important Questions from each chapter..

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

    Excellent Explanation mam

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

    Excellent explanation of all the concepts in one video .

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

    Thank you so much for this video. Really helpful

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

    Mam.. very useful vdo. Thanks a lot 🙏

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

      Most welcome 😊
      Keep watching and sharing..

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

      @@SwatiChawlaofficial Ma'm,
      Plz provide project work also.. then it is more helpful

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

    Excellent Explanation mam
    😊

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

    Thank you mam for this video🙏🏻

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

    Thank you mam for such an excellent teaching ❤️🤩

  • @snehlatajaiswal7366
    @snehlatajaiswal7366 Год назад

    Thank you so much ma'am
    Very good explanation 👌👌

  • @Aliumplayz
    @Aliumplayz 6 месяцев назад +3

    Congratulations mam for 100k in advance (now it is 99.9k)😅😊

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

    Ma'am when we use wb ....should it not overwrite the data in file ?

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

    Amazing lecture🎉

  • @Rohitkumar-pg5ny
    @Rohitkumar-pg5ny 4 года назад +2

    Work on you will definetly get a good acheivement.

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

    amazing explanation, thank you

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

    print("Thank you very much mam 👍👍")

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

    You are amazing. Thank you

  • @ShubhamYadav-ef4pn
    @ShubhamYadav-ef4pn 7 месяцев назад +1

    Can we use rb+ mode and open file only once in deletion operation?
    Plz reply mam kal hi board exam hai 😂😂😢

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

    Madam which update method to be followed.If the length of the name while input is more or less characters in a nested list of student records ?

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

    Mam after downloading your video offline in youtube , not able to increase speed from normal to 1.5 or 2x , pl make that feature available

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

    Thanks a lot ma'am 🥰🥰

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

    Ma'am when i choose second option it doesnt show the data instead it shows
    1.write data in file
    2.read data of file
    3.append...............

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

    Mam delete vale function mai try/except use nhi hoga ky.
    For se toh bas first index read hota hai na?????

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

    Mam After watching this video thrice... The only concept which i'm not able to understand is the use of seek(0),rpos=f.tell() and f. Seek(rpos) in updation program..
    Mam i only want ki bss aap ek baar line by line btado ki why these three are used and what effects are they creating in the program..
    Baaki all clear❤️ hai mam except thees three..

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

      To update the record...we will follow 3 steps..
      1. seek(0) : Move the file pointer to the begining, so that we can read the records from the beginning..
      2. When we found the record, which is to be updated, then.
      ,we will get the position of current file pointer using f.tell() function.
      It's value is getting stored in rpos variable.
      3. Then finally, we move the file pointer using seek() to that particular location, where we want to update the record.having argument rpos , which contains the location of a record that is to be updated..

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

      I hope.. I m able to clear your concept now...

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

    maam in the deletion operation , won't an eof error come up and how to resolve it as if we use try and except here then it would become a local variable,and if we do not put them it would display an eof error,pls help maam,it's urgent.

  • @jatin9434
    @jatin9434 4 года назад +3

    print("Every concept is now clear just because of you !! ❤️")
    #Now
    YourSubscribers+=1

  • @nayatrivashist9193
    @nayatrivashist9193 10 месяцев назад +1

    maam aapke pichle videos mein jidhar aapne singly bataya update , write toh different hai..

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

    thank you so much

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

    We got this as a mini project for Term 1

  • @Factforall.26
    @Factforall.26 Год назад +1

    mam append wali video ma to program ab mode sa bhi run horaha tha
    why you are saying that ab mode sa data nested list ma nahi ayaga

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

    Mam u have taught two methods of update operation.. One in this video and one in sparate video...
    Is there any difference in those 2 methods.. I mean ki dono me se if koi b method hum board exam me krenge to chlega na? Bcz meko wo doosra wala method zada simple lga.. This above method of updating is bit confusing

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

      Yes..in board exam..u can do with any method..
      But for making projects and menu driven programs, this will be helpful..

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

      @@SwatiChawlaofficial thnku mam🥰

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

    Ma'am will it make a difference if we don't write seek(0)?? ....it is going to append at the end ...and we will read it ....then whole data will be read automatically even the appended one ....

  • @diyas4258
    @diyas4258 2 года назад +1

    hello maam.. after trying this code.,i got an error as TypeError int object is not Subscriptable. What to do now?

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

    It's fantabulous ma'am to see ur contents... Its really amazing..! 😊👌👌👌N thank-you so much for ur efforts... Such keen explaination and important questions solving videos i hve not seen for any subjects..! Specially Computer science... 🤗😊#CS_WIZARD✌️

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

      So nice of you...
      Thanks for these Golden Words..
      God bless you beta..
      Keep watching...

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

    Mam can you please share this program

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

    Wonderful video

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

    Thankyou mam

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

    maam in the codes where you are using try-exceot can we do it wuthout try-except

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

      For standalone programs...it will work..if there is no exception..but in case the Exception is generated..we have to handle that using except block..
      This is even good programming practice to handle the exceptions in a program

  • @AmanGupta-df6ie
    @AmanGupta-df6ie 3 года назад +1

    Mam please agar possible ho .. 🥺 to pure program ka written format bhi discription me link kr dia kriye ☺️😄

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

    Msm, I try to do this but in searching function which shows TypeError file must have read and read lines attributes.
    Try block is not executing

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

      Check your code,, with this one, as this is working fine..
      try to find it out, why where u r getting error..

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

      @@SwatiChawlaofficial same code am writing mam.. But I donknw whr or hw error occurred

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

    Ma'am.. in the delete function.. if the roll no is not there in the list, then what?

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

    if we use ab instaed of rb+ then what will happen

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

    Mam r+ ya rb+ mein pehle read krna necessary hota hai
    Kya hm directly write nhi kr skte

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

    Ma'am can u share this program in telegram group???
    Btw thank u for this awesome video👌👌😊😊

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

    Best

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

    pls share the pdf menu driven program for binary files in python

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

    Mam I have a confusion that when we use close fun
    Sometimes u r using and sometime s not can u explain

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

      Generally...when we open the File using with statement , then there is no need to close the file explicitly.
      If we are opening it with open(), we have to close the file using close() Function..

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

    mam please try to provide notes of these sessions.......

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

      Sure... You can enjoy special perks by joining the membership.
      Have a look at this.
      ruclips.net/channel/UC2vH9rqGh-fJELF8acGfBdwjoin

  • @DheerajKumarB-un5rc
    @DheerajKumarB-un5rc 4 года назад

    Maam at 12:25, what is the need of 'while True' statement. Pls answer maam.

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

      it will read the records from the file one by one... when it reaches EOF the exception will be handle by except block and file will get closed.

    • @TheSaneInternational-SNI
      @TheSaneInternational-SNI 4 года назад

      Are dheeraj tum yahan bhi mil gaye😅😅
      😉

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

      @@SwatiChawlaofficialmam but binary file does not have endofline character

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

    Hello mam 🙂 while doing this program in the def append part on tapping y for entering more records it just brought out from the loop and said Record appended ? What could be the error

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

      check your indentation of f.close() or even other statements too..

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

      @@SwatiChawlaofficial Thank You mam it worked ❤️🙏

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

      Mam is there any command to enter only unique serial no in binary files python?

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

      Welcome..🙏🏻😊

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

      For this...use the logic..
      Prompt the user to enter the value and compare every value entered by the user with all the previous values.
      If match founds..then duplicate value...

  • @unicorn-cv1ex
    @unicorn-cv1ex 3 года назад

    Mam jo update vala function h agr usme humne koi essa rollno daala jo na ho file m toh kya hoga ...humne koi msg nhi diya n ....agr hume msg dena ho toh hum if k parallel else krke denge n

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

    please upload code in description

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

    while True:
    MainMenu()
    ch=int(input("which operation would u like to perform?:")
    if ch==1:

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

      ch=int(input("which operation would u like to perform?:")
      In this statement, one closing bracket is missing..
      ch=int(input("which operation would u like to perform?:"))

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

      @@SwatiChawlaofficial ok ma’am thank u

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

    Mam I am not able to understand why we used in update() , seek and tell() function?

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

      To update the record , we have to move the file pointer to that particular record, which we want to update..for that we require these two functions..

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

    mam why are we appending in the delete function.... i dont get it

    • @vasanthkrishna9350
      @vasanthkrishna9350 Год назад

      if i[0] == r:
      continue
      This means the roll no. given by the user will be taken and iterated , but this continue function will skip that data alone (where i[0] == r) and print other data in the new RECLIST. Skipping that data essentially means deleting it because it is not printed. For example, if you input 2 , then , the data corresponding to 2 alone will get skipped and others will get appended in the RECLIST. So, 2 won't get added in the list. At last when you print everything except the data corresponding to 2 will be given as output. That's why we are appending in the delete function.

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

    Excellent

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

    Agar operation of Binary file par project banana ho tho project ka name kya dale

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

    Ma'am, while updating last record is ok, but when we are trying to update first or middle records then later remaining data is not dumping properly and even appending also not able to do

  • @RamanRaman-qo4gw
    @RamanRaman-qo4gw 3 года назад

    Mam could you please mam video on difference between wala question of computer network it's really help us mam🙏🙏🙏🙏

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

      ruclips.net/video/uz3wG_xkZ68/видео.html
      ruclips.net/video/tvqBCieTuns/видео.html
      ruclips.net/video/grcDIBDns94/видео.html

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

    While reading file its commuting error and saying file of this name does not exist what to do

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

    Mam aapne pehle read mein while true ke andar try block dala tha
    Ismein aap try block ke andar while true dal rhi hai mam aapne aise previous way se kyu nhi kara?

  • @sakshigarg2775
    @sakshigarg2775 Год назад

    are you teaching in a school also ?

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

    If we won't except what will happen mam

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

    Mam all lists are getting deleted every time I select one list😭😭 pls reply🙏🙏🙏

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

      Try to exexute the code given in the video...one by one...
      This one is working properly..

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

      @@SwatiChawlaofficial did it again and worked👍thanks mam🙏

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

    Ma'am all operations are great, one thing is not working for me, after appending data/record if I use delete operation(call Del fun) , it messes up. Plz check and update.

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

      sure....plz share your code...

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

      @@SwatiChawlaofficial Tried with your code only, which is given in this video, plz run your code after Append two or more records and delete recently added one.

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

      @@SwatiChawlaofficial in this video 36th min (delete function) run that code after append record

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

      @@SwatiChawlaofficial Tried with your code only, which is given in this video, plz run your code after Append two or more records and delete recently added one.

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

      Plz share your code...

  • @TheSaneInternational-SNI
    @TheSaneInternational-SNI 4 года назад

    Mam why you have turned off the comments in your previous videos? Pls mam turn on the comments... It's a request...

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

      Which video?
      Plz tell the title name or send link

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

      Turned it ON now...
      Please check..

    • @TheSaneInternational-SNI
      @TheSaneInternational-SNI 4 года назад +2

      @@SwatiChawlaofficial mam... in all the videos of binary files the comments are turned off... 😟😟
      Pls check the playlist of file handling once... In this playlist most of the videos don't have comments turned on...
      Btw, thnx for everything you have done for us... We will always be indebt of all the teaching given by you...

    • @TheSaneInternational-SNI
      @TheSaneInternational-SNI 4 года назад +1

      @@SwatiChawlaofficial ok mam... Thanx a lot🙂🙂🙂🙂🙂

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

    Diii plzzz give these 6 program by using dictionary... pleasee🙏🙏

    • @SwatiChawlaofficial
      @SwatiChawlaofficial  Год назад

      ruclips.net/p/PL5Raijva2y4SCqG8UR_12dVUqGHM_V-iX&si=o5YMh1lDaZ-3IQ9X

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

    Mam please share the code here

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

      actually i have installed windows..so all these codes are not saved now...

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

    Man can you provide us these notes

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

      Sure..You can enjoy special perks by joining the membership.
      Have a look at this.
      ruclips.net/channel/UC2vH9rqGh-fJELF8acGfBdwjoin

  • @immortalized_onion
    @immortalized_onion 3 года назад +3

    Why can't you just post the code?! I'm supposed to watch half an hour for a 10 minute program?

    • @SwatiChawlaofficial
      @SwatiChawlaofficial  2 года назад +5

      If i will provide the code then some students just copied 8t and don't bother to understand it...
      It will definitely not increase their programming skills

    • @immortalized_onion
      @immortalized_onion 2 года назад +2

      ​@@SwatiChawlaofficial Someone who came here to copy the code will copy the code anyways without understanding, it will just be harder. And the person who came here to learn will learn it either way.
      I had my practical that day, so I didn't have much time, and just needed to learn one part of the program, I had to seek through it so I got a little worked up.
      Maybe post it somewhere it won't be too easy to find or something.

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

      Ok

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

    Thanks a lot ma'am ❤💝💝

  • @RamanRaman-qo4gw
    @RamanRaman-qo4gw 3 года назад +1

    Thanku mam