You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: File.py
+15-1
Original file line number
Diff line number
Diff line change
@@ -37,4 +37,18 @@
37
37
# Now add other text in file "mydata.txt" with appending "a" i=use in ".open()" function
38
38
Addtext=open('mydata.txt','a')
39
39
done=Addtext.write('file is create with this we can add as much as data we want to write in this file using ".open(file_name,"a") than you can append data.')
40
-
Addtext.close()#after this our file is updated you can check in that file.
40
+
Addtext.close()#after this our file is updated you can check in that file.
41
+
42
+
43
+
# It is dificult to remember to close function every time
Make this file with name mydatafile is create with this we can add as much as data we want to write in this file using ".open(file_name,"a") than you can append data.
1
+
Make this file with name mydatafile is create with this we can add as much as data we want to write in this file using ".open(file_name,"a") than you can append data.now close function tension finish
0 commit comments