Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Opening/viewing File(I need help with finding a file and opening it using eclipse.)
icon1.gif  Opening/viewing File [message #952543] Sun, 21 October 2012 15:02 Go to next message
August Klevberg is currently offline August Klevberg
Messages: 2
Registered: October 2012
Junior Member
I am a new eclipse coder.
I need help with writing a special code.
I want eclipse to find a saved file on my computer and open it.
I do know how to do it with command prompt...
cd "filename"
cd ..
cd \
dir


Can anyone help me with this?
I would really appreciate it Very Happy
Re: Opening/viewing File [message #952761 is a reply to message #952543] Sun, 21 October 2012 19:13 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 26088
Registered: July 2009
Senior Member
August,

I have no idea what such a sequence of commands on the command prompt is
supposed to do. Usually to you cd to a directory, not to a file nane.
Then you move up one level. And then you move to the root, which seems
to make the other steps pointless. Then you ask for a listing of all
the file in the current directory (the root). What language are you
wanting to writing your code in?

On 21/10/2012 6:07 PM, August Klevberg wrote:
> I am a new eclipse coder.
> I need help with writing a special code.
> I want eclipse to find a saved file on my computer and open it.
> I do know how to do it with command prompt...
> cd "filename"
> cd ..
> cd \
> dir
>
> Can anyone help me with this?
> I would really appreciate it :d
Re: Opening/viewing File [message #954241 is a reply to message #952761] Mon, 22 October 2012 22:16 Go to previous messageGo to next message
August Klevberg is currently offline August Klevberg
Messages: 2
Registered: October 2012
Junior Member
I showed examples of some codes that I knew how to do with cmd. If I were to tell you what I wanted to find with cmd I would do something like this:
cd %appdata%
cd .minecraft
cd bin

And so forth...
Re: Opening/viewing File [message #954536 is a reply to message #954241] Tue, 23 October 2012 04:07 Go to previous message
Ed Merks is currently offline Ed Merks
Messages: 26088
Registered: July 2009
Senior Member
August,

There's File -> Open File... But it sounds like you'd like to do
something like that programmatically though when I asked in what
language, you didn't answer that question...


On 23/10/2012 12:16 AM, August Klevberg wrote:
> I showed examples of some codes that I knew how to do with cmd. If I
> were to tell you what I wanted to find with cmd I would do something
> like this:
> cd %appdata%
> cd .minecraft
> cd bin
> And so forth...
Previous Topic:swt jar file for 64 bit windows and 64 bit JVM
Next Topic:3.7 / 3.6 updatesites access error
Goto Forum:
  


Current Time: Thu Oct 02 02:22:17 GMT 2014

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

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