Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fo=open("test.txt","r+")
- print "Name of file:", fo.name
- fo.write("Life is short..")
- str=fo.read(3)
- print "String in file is :",str
- fo.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement