|
Re: How to read an input file in eclipse [message #757926 is a reply to message #757595] |
Mon, 21 November 2011 03:52 |
|
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?
|
|
|
Powered by
FUDForum. Page generated in 0.07261 seconds