How to send output to file

Gerrit Holl gerrit at nl.linux.org
Fri Jan 24 03:56:37 EST 2003


A schreef op dinsdag 21 januari om 20:27:56 +0000:
> Dear Gerrit,
> Thank you for your email.
> Now I already know how I can assing the output to a file.
> Is there a possibility  to assign the output back to standard as it was before I assigned to a 
> file?

You can use sys.__stdout__ for that: sys.stdout = sys.__stdout__

yours,
Gerrit.

-- 
Asperger Syndroom - een persoonlijke benadering:
	http://people.nl.linux.org/~gerrit/
Het zijn tijden om je zelf met politiek te bemoeien:
	http://www.sp.nl/





More information about the Python-list mailing list