Next Index Previous

Python Examples

13. Program to append data into a file.

fh = open('hello.txt','a')
fh.write('How are you?')
fh.close()