D
durumdara
Hi!
I wanna write a file processor in python (Windows XP).
I wanna use pipe, and not parameters.
When I write this:
....
l = []
while 1:
t = sys.stdin.read(1)
if t == '':
break
l.append(t)
t = "".join(l)
....
and use code this:
process.py <test.txt
I got:
"Bad file descriptor"
What I do wrong? I need to call this module in another format?
Or I read in wrong way?
Thanks for your help:
dd
I wanna write a file processor in python (Windows XP).
I wanna use pipe, and not parameters.
When I write this:
....
l = []
while 1:
t = sys.stdin.read(1)
if t == '':
break
l.append(t)
t = "".join(l)
....
and use code this:
process.py <test.txt
I got:
"Bad file descriptor"
What I do wrong? I need to call this module in another format?
Or I read in wrong way?
Thanks for your help:
dd