Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » input arguments(Defining the path)
input arguments [message #1769412] Mon, 31 July 2017 11:54 Go to next message
Deepa M is currently offline Deepa MFriend
Messages: 2
Registered: July 2017
Junior Member
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 15:31 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 30897
Registered: July 2009
Senior Member
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 15:39 Go to previous message
Deepa M is currently offline Deepa MFriend
Messages: 2
Registered: July 2017
Junior Member
Thanks!!!!!!
Previous Topic:Open Resource
Next Topic:Debug configuration - classpath: multiple selections can not be made
Goto Forum:
  


Current Time: Sun Feb 23 12:18:08 GMT 2020

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

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

Back to the top