ontains:
>
> import sys
>
> print sys.stdin.readlines()
>
>
> test.txt contains:
>
> Testline1
> Testline2
>
>
> Output of 'python test3.py < test.txt' is:
>
> ['Testline1\n', 'Testline2']
>
>
> Just plain
> one search for the terms 'python read stdin'
>
> Rolf
>
> Bernard Desnoues wrote:
>> Hi,
>>
>> I've got a problem with the use of Redmon (redirection port monitor).
>> I intend to develop a virtual printer so that I can modify data sent
&g
" doesn't work.
"f = open(sys.stdin)" doesn't work.
I don't find anything in the documentation. How to do that ?
Thanks in advance.
Bernard Desnoues
Librarian
Bibliothèque de géographie - Sorbonne
--
http://mail.python.org/mailman/listinfo/python-list