Advertisement
Guest User

Untitled

a guest
Apr 25th, 2015
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. fo=open("test.txt","r+")
  2.  
  3. print "Name of file:", fo.name
  4.  
  5. fo.write("Life is short..")
  6.  
  7. str=fo.read(3)
  8.  
  9. print "String in file is :",str
  10. fo.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement