running a script with an input file

David Bikard dbikard at gmail.com
Sun Jul 20 09:57:10 EDT 2008


I'd like to run a program  so that it reads the input() or raw_input()
statements from an input file instead of
reading from keyboard. I'd also like it to write the print statements in an
output file rather than on the screen.

I'm on windows XP and when I run:
prog_name.py input_file output_file

I get an EOF error.

What should I do to make this work?

Thx,
David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20080720/bd18e873/attachment.html>


More information about the Python-list mailing list