How we can take input from the file in the Eclipse?
Just like we direct the I/O from the file from the command line.
java MyProgram < input.txt >output.txt
I am unable to direct the input.
but output directing is easy.
Just go->Run->Run->Configurations->Common
How we can take input from the file in the Eclipse? Just like we
Share
If you need necessarily use the default
inyou can do something like this:a sample of how it works follows:
The output could be done in the same way using: