Help me to print to screen as well as log

Himanshu Garg hgarg.india at gmail.com
Sun Nov 24 02:00:07 EST 2013


I have simply opened file in append mode in linux.

script 1 :

file = open("output.log", "a")
file.write()
file.flush()

script 2:

file = open("output.log", "a")
file.write()
file.flush()

It writes properly to the file.



More information about the Python-list mailing list