Piping :
The Output of one program being used in another program is
called piping . This can also be used when the output of the program is too
large and cannot be viewed in one shot in the screen . One possible way to
achieve the above is
C:\Documents and settings\admin>java B
>temp.txt
A temp.txt file will be created in the space which will
contain the output of the program B.java. This file can be used as a input for
another program . We could use the piping symbol to achieve the same .
C:\Documents and settings\admin>java B | more
No comments:
Post a Comment