Closing a File : close « File « Python Tutorial






f = open("/a.mp3", "rb")      
print f.closed                                  
f.close()                                      
print f 
print f.closed                                      
f.seek(0)                                       
print f.tell() 
print f.read() 
f.close()








12.18.close
12.18.1.Closing a File