stdout and redirection (win NT)
craigf at ilid.com.au
Tue Mar 21 04:06:42 CET 2000
What am I doing wrong here?
My sample python program test.py is:
>From a command prompt, I type:
and I get the expected Hello World output on the console.
Next, I type:
test.py > c:\myfile.txt
I expect the file myfile.txt to contain the redirected output from the
python script. Instead, myfile.txt exists but is empty.
What is happening?
More information about the Python-list