About Lesson
Operation on file:-
File पर कार्य करने के लिए file को open करना, इसके बाद file में data को read or write किया जाता है अंत में file को close किया जाता है।
Python में File को handle करने के लिए कुछ महत्वपूर्ण operations नीचे दिए गए है-
-
Opening File
-
Closing File
-
Reading File
-
Writing File
-
Append to a file
-
Renaming File
-
Deleting File
Operation on file:-
To work on a file, the file is opened, then the data in the file is read or written and finally the file is closed.
Some important operations to handle files in Python are given below-
-
Opening File
-
Closing File
-
Reading File
-
Writing File
-
Append to a file
-
Renaming File
-
Deleting File