Running a program from a file in Eclipse
How do you run a java program that requires input from a file in 开发者_运维知识库Eclipse?
Not 100% sure if this is what you wanted. You may need to clarify your question more. You mean you pass in the name of the file through the commandline args?
You can add the file to the path by:
Run Menu->Run Configurations...->Arguments Tab
then under Program Arguments
add the input filename.
Hope that helps!
精彩评论