Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Use Input from any File

Hi All,

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?

Regards,

Prashant Joshi

Edited by: prashant joshi on Sep 11, 2008 11:45 AM

replied

Hi,

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".

Thanks

Aasavari

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question