Important Notice:

Course Content
File Processing in Python (Chapter-11) M3-R5
About Lesson

Append to a file:-

            इसके द्वारा file के end में data को write किया जाता है इस mode में file pointer को उपलब्ध file के end में रखा जाता है।

              Through this, data is written at the end of the file. In this mode, the file pointer is kept at the end of the available file.

Note:- जब हम किसी फाइल को open करते हैं तो insertion point starting में रहता है इसलिए write mode से किसी फाइल में कुछ लिखने से पुराना data delete हो जाता है। append mode से insertion point  last में चला जाता है और पुराने data के साथ-साथ नया data भी file के last में insert हो जाता है।

Note:- When we open a file, the insertion point remains at the starting point, hence writing something in a file through write mode deletes the old data. With append mode, the insertion point goes to the last and along with the old data, the new data is also inserted at the last of the file.

 

 

 

 

 

 

error: Content is protected !!