Skip to main content



      Home
Home » Newcomers » Newcomers » input arguments(Defining the path)
input arguments [message #1769412] Mon, 31 July 2017 07:54 Go to next message
Eclipse UserFriend
Hello Everyone,
I am attempting to run a java file on eclipse.
The file consists of the following:

String inputFile = args[0];
String outputFile = args[1];

I am using the run-> run configuration
Here in the arguments tab ,how do we specify the paths to both input and output file?
Would it be fine if I specify the absolute paths of both input filename and output filename with a space in between?
Re: input arguments [message #1769439 is a reply to message #1769412] Mon, 31 July 2017 11:31 Go to previous messageGo to next message
Eclipse UserFriend
Instead of asking, why don't you just try? Yes, the command line processor will split arguments at white-space boundaries. If you need an argument that contains a space, you can put "" around that argument. If you need a " in the argument value, you can use \".
Re: input arguments [message #1769441 is a reply to message #1769439] Mon, 31 July 2017 11:39 Go to previous message
Eclipse UserFriend
Thanks!!!!!!
Previous Topic:Open Resource
Next Topic:Debug configuration - classpath: multiple selections can not be made
Goto Forum:
  


Current Time: Wed Mar 19 23:02:14 EDT 2025

Powered by FUDForum. Page generated in 0.06695 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top