Skip to main content



      Home
Home » Newcomers » Newcomers » How to read an input file in eclipse
How to read an input file in eclipse [message #757595] Sat, 19 November 2011 20:08 Go to next message
Eclipse UserFriend
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] Sun, 20 November 2011 22:52 Go to previous message
Eclipse UserFriend
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: Wed Jul 16 23:00:14 EDT 2025

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

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

Back to the top