Question : append file

How do you add text to the end of a file witout reading off the filecontent.

Answer : append file

When opening file, use 'a' parameter:

>>> f=open('some_file_name.txt', 'a')
>>> f.write('Hello! This is additional line.')
>>> f.close()
Random Solutions  
 
programming4us programming4us