EvilZone
Programming and Scripting => Scripting Languages => : Ragehottie June 03, 2012, 01:28:41 AM
-
The title says it all. I want to write a new line of text without deleting the other lines.
-
open the file with open("filename.txt","a") instead of using "w"
puts it in append mode
-
I still get an error. I am using this code:
filename = 'Test.txt'
file = open(filename, 'a')
filestuff = file.read(1024)
print filestuff
file.write(filestuff + 'Hello\n')
file.close()
EDIT :
Ohhhhh. Nevermind