opening file
file = open("filename", "operation")
operation ex:
file name : a
open file for reading syntax: a = open("a.txt", "r")
open file for writing syntax: a = open("a.txt", "w")
open file for appending syntax: a = open("a.txt", "a")
cursor place :a.tell()
reset the cursor potion: a.seek(0,0)
write : a.write()
close:a.close()
Comments
Post a Comment