Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » How to read an input file in eclipse
How to read an input file in eclipse [message #757595] Sun, 20 November 2011 01:08 Go to next message
emailtaurus5 is currently offline emailtaurus5Friend
Messages: 1
Registered: November 2011
Junior Member
Hi All,

Am new to Java programming. I was trying to execute a program which takes some parameters as input and another control file as the source to read the data from.I provided the input parameters on Arguments tab of Run configurations dialog box. But am not able to understand where to provide the source file where the program needs to read the data from. I tried under VM arguments but it's throwing an error.

Any help is greatly appreciated.
Re: How to read an input file in eclipse [message #757926 is a reply to message #757595] Mon, 21 November 2011 03:52 Go to previous message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 2011.11.19 18:08, emailtaurus5 wrote:
> Hi All,
>
> Am new to Java programming. I was trying to execute a program which
> takes some parameters as input and another control file as the source to
> read the data from.I provided the input parameters on Arguments tab of
> Run configurations dialog box. But am not able to understand where to
> provide the source file where the program needs to read the data from. I
> tried under VM arguments but it's throwing an error.
> Any help is greatly appreciated.

You don't say what error. Do you realize there's no "current working
directory" à la POSIX in Java? When you open a file, you open it from
the root of the application calling open, i.e.: when running/debugging
via Eclipse, the root of the project.

Is this helpful?
Previous Topic:Working with Tomcat6, ftp/ssh and Eclipse Indigo
Next Topic:eclipse IDE for Java and C/C++ ???
Goto Forum:
  


Current Time: Fri Apr 26 11:58:08 GMT 2024

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

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

Back to the top