d*r 发帖数: 238 | 1 I have a test file with the input data as standard input.
In C, I can use < to redirect, like: myapp < test
How do to it in java? Use java myapp < test? | z****g 发帖数: 2497 | 2 A workaround is made a wrapper for it.
The wrapper read the file line by line and send to your main program.
You still call
"java myapp test"
【在 d*r 的大作中提到】 : I have a test file with the input data as standard input. : In C, I can use < to redirect, like: myapp < test : How do to it in java? Use java myapp < test?
| g*****g 发帖数: 34805 | 3 What kind of input do you need? Just place them after Java myapp,
and they are available as args[i].
【在 d*r 的大作中提到】 : I have a test file with the input data as standard input. : In C, I can use < to redirect, like: myapp < test : How do to it in java? Use java myapp < test?
|
|