Use Input from any File
I have java class which I run from command prompt.
I have to send the input of the program from file means user dont have to enter at command prompt.
how can I do it?
Edited by: prashant joshi on Sep 11, 2008 11:45 AM
Aasavari Bhave replied
This is a java specific question and this forum is targeted for BOE java SDK questions only so it is not the right forum for this question.
But to still answer your question, You can use Java File File\IO calls, to open a file and read the input data from it and process it within the java code. This way user won't have to supply any input parameters. For further help on how to use Java File handling, there is a lot of help available at different sites. Google can help you find stuff of "java File handling".