z****n 发帖数: 28 | 1 Sorry for this question, but I do appreciate your answer if you can tell me on
this board or to my mailbox.
Under unix
cat filename | ./run
Inside run script, there is the Java file that takes filename as the input. So
how does Java read the filename in the java code? | m******t 发帖数: 2416 | 2
on
So
When you do "cat filename | ./run", it is the content of the file, instead of
the file name itself, that is fed to ./run, through standard input, ./run
will not be able to see the name of the file.
【在 z****n 的大作中提到】 : Sorry for this question, but I do appreciate your answer if you can tell me on : this board or to my mailbox. : Under unix : cat filename | ./run : Inside run script, there is the Java file that takes filename as the input. So : how does Java read the filename in the java code?
|
|