View Single Post
pycage's Avatar
Posts: 3,404 | Thanked: 4,474 times | Joined on Oct 2005 @ Germany
#4
Dive into Python is excellent work but really confusing stuff.

You can use mode "a" to append:
Code:
fd = open("myfile", "a")
fd.write("some text")
fd.close()
 

The Following User Says Thank You to pycage For This Useful Post: