File Redirection on the IDE [message #180261] |
Wed, 15 November 2006 05:40 |
Eclipse User |
|
|
|
Originally posted by: i_am_behrang.yahoo.com
Hi,
How can I redirect an input file into my java program. on the command
line I simply use "<". How should I do that on the IDE. I tried passing
it as a argument but it didn't work.
|
|
|
Re: File Redirection on the IDE [message #180439 is a reply to message #180261] |
Wed, 15 November 2006 20:17 |
Eclipse User |
|
|
|
Originally posted by: eclipse4.rizzoweb.com
behrang wrote:
> Hi,
>
> How can I redirect an input file into my java program. on the command
> line I simply use "<". How should I do that on the IDE. I tried
> passing it as a argument but it didn't work.
>
File piping and redirection are operating system functions, not Java
functions.
You can code your program to accept the input file name as an argument
and read the specified file directly.
Hope this helps,
Eric
|
|
|
Powered by
FUDForum. Page generated in 0.08961 seconds