I tried using the sys.stdout method and it worked. It seems pretty
simple but I dont understand the simple method you posted. Thanks for
the help, I'll mess around with it and keep on learning.
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] wrote:
> If I have a simple program that for example calculates
> the squares of 2 to 100 times, how can I write the resulting output
> onto a separate text file?
>
> I know about the open() function and I can write strings and such in
> text files but I'm not able to write the o