Re: Help saving output onto a text file

2006-01-29 Thread [EMAIL PROTECTED]
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

Re: Help saving output onto a text file

2006-01-29 Thread Scott David Daniels
[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

Help saving output onto a text file

2006-01-29 Thread [EMAIL PROTECTED]
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