Re: Some general questions about using "stdin","stdout"....

2006-02-17 Thread Steve Holden
asdsd sir wrote: > thank you very much for your help... > my big mistake,was to believe that "|" is the pipe symbol for both,unix and > python... > it is really annoying,how such a simple thing can mess things > > Thank you for clearing this out. > It is indeed annoying when assumptions we carry

RE: Some general questions about using "stdin","stdout"....

2006-02-17 Thread asdsd sir
thank you very much for your help... my big mistake,was to believe that "|" is the pipe symbol for both,unix and python... it is really annoying,how such a simple thing can mess things Thank you for clearing this out. _ Free bloggin

Re: Some general questions about using "stdin","stdout"....

2006-02-16 Thread Diez B. Roggisch
asdsd sir wrote: > Hi!I'm new in Python and i'd like to ask some general questions about > stdin,stdout... > > Firstly... > > if we type like something like : >cat "file.txt"|python somefile.py > > #somefile.py > import sys > text=sys.stdin.read() > > > ...then "sys.stdin.read()"

Re: Some general questions about using "stdin","stdout"....

2006-02-16 Thread Dan
Hello. If you're new to Python, then input/output isn't the best place to start. Begin with the tutorial: http://docs.python.org/tut/tut.html Other documentation is also linked to from there. However, I will briefly answer your questions. > print "hello"|sys.stdin.read() In Python the | ope

Some general questions about using "stdin","stdout"....

2006-02-16 Thread asdsd sir
Hi!I'm new in Python and i'd like to ask some general questions about stdin,stdout... Firstly... if we type like something like : cat "file.txt"|python somefile.py #somefile.py import sys text=sys.stdin.read() ...then "sys.stdin.read()" will read from "cat"s stdout... However,if i