[Tutor] Command Line Arguements in Python
Tue, 16 Oct 2001 21:01:48 -0600
I'm having some trouble reading input and writing output files from the
command line as follows:
python myfile.py < inputfile.txt > outputfile.txt
The problem is, I don't know how to get access to the inputfile.txt and
outputfile.txt inside my code. Normally, i'm used to using the "open"
command but I don't want to hard code it in anymore. FYI, i'm using Python
on a UNIX O/S.
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp