Oops I am sorry, I think I read your sentence about :
'Or do you actually know how to read a file, but you're looking for a way to use it as a substitute for command line arguments? '
rather lightly. I dont actually know how to read a file (of inputs) that java should look in. I was thinking more along the lines of do i know how to open a java file in netBeans (like you would in Microsoft word or something), i know it sounds rather ignorant :-D
Let me put it as simple as i can, when you run some java program that you have made that prompts you to input some value(s) what you would do at that point (when it prompts you) is to type it in. Instead of typing in the values manually i would like to put them in a file (for example if there are many values and i dont wish to type them in or paste them everytime). Then i can use the command
java someJavaFile < someFileToRead
i cant remember for sure whether its < or > but its to that effect.
Then what java will do is to take (when it prompts) the inputs from that file (every line is like typing at a new prompt - i can set it up that way) as if it was an input from you physically typing it at the keyboard. I would just like to know how you can do this in netbeans or if it is at all possible to do it in netBeans since you can do it at the command prompt.
Thank you and sorry for the trouble.