Sign In
|
Register
Please Log In to save to favorites
TAGs
write, python
Versions
Versions
30/12/2009 15:56:55
write to file in python
by
duniyadnd
Write to a file in Python
1.
def
writeToFile ( self , content ):
2.
file = open("testing.txt", "w+")
3.
file.write(content)
4.
file.close()
Comments
Sign in to give your comments.