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
I have been learning python during the past weeks and I have been able
to program some interesting things. Python is my first and only
programing language from which I wish to enter the programing world.
My question was: if I have a simple program that for example calculates
the squares of 2 to 10