python close file

42

with open(filename) as f:
  #use file

 #close file
f.close()
fileObject.close()

Comments

Submit
0 Comments