How to open a file in any directory not only in current  DIR

hi
i am new to java .
i have written the code for opening a file and reading the opened file.
i used filedialog to select a file for opening.
problem is it is opening a file only in the cuurent working directory.
i.e FileDialog.getFile() only returning the file name .what should i do to get the entire path of the file so that i can open a file any where in my System.

plz give replies
fileDialog.getDirectory() + fileDialog.getFile()

Similar Messages

  • How to open a file in the finder using only the keyboard?

    Hello,
    I use the arrow keys a lot in the finder (I do a lot of renaming) but I can't find a way to open a document with the keyboard. Only the mouse double-click seems to work.
    Anyone knows a shortcut?
    Thanks

    Hi k.panic,
    Thanks for that one. I had not used that shortcut before.
    Guess I could do more reading. There's a lot to learn.
    Mac OS X keyboard shortcuts
    Dan Rodney's List of Mac OS X Keyboard Shortcuts and Keystrokes

  • HT1338 how to open .osx file in lion

    how to open .osx file in lion

    I am not sure you can.  Open terminal (in utilities) and type the word file followed by a space.  Then drag one of those .osx files in to the termina.  You should have a line that looks like:
    file /path/to/osx/file
    Hit return and post results.
    Also, see this link.  If what they say there applies here then you won't be able to execute those files.

  • How to open my file which is in my c directory

    hi
    how to open my file which is in my c directory
    for example i have one folder called "man" which is in my c directory,
    is there possible to open that folder using sql query,if means please tell me

    hi
    how to open my file which is in my c directory
    for example i have one folder called "man" which is
    s in my c directory,
    is there possible to open that folder using sql
    l query,if means please tell meWell, you can use the UTL_FILE package as described above, within PL/SQL, but if you want to access a file though an SQL query (as you stated) then you'd have to look into creating an external datasource and using SQL syntax such as...
    select whatever
    from table@ext_datasource_name
    What exactly are you trying to achieve?

  • Whenever I open a file of any type, that file will open, as well as multiple other files I do not wish to open.  How do I prevent this from happening.

    Whenever I try to open a file of any type, that file will open, as well as several other files I do not wish to open.  How do I prevent this from happening?

    Dealing With The Resume Feature of Lion
    Managing Mac OS X Lion's application resume feature.
    If you shutdown your computer you should get a dialog asking if you want applications to resume on the next startup. Simply uncheck the box to prevent that from occurring. Open General preferences and uncheck the option to Restore windows when quitting and re-opening apps. You can also install a third-party utility to control resume features on individual applications: RestoreMeNot or Application State Cleaner.
    It is possible to completely stop the Resume feature although I'm unconvinced that it is that annoying. Nevertheless see the following:
    If you have not yet done so you must first make your /Home/Library/ folder visible. Open the Terminal application in the Utilities folder. At the prompt paste the following command line:
    chflags nohidden ~/Library
    Press RETURN. Quit the Terminal application.
    In the Finder navigate to the /Home/Library/Saved Application State/ folder. Delete the contents of the folder. Back up to the /Home/Library/ folder. Select the Saved Application State folder. Press COMMAND-I to open the Get Info window. In the Sharing and Permissions panel at the bottom click on the lock icon and authenticate. Set each of the listed entries to Read Only. Close the Get Info window.
    Quit all open programs except the Finder (this is very important.) Next, navigate to the /Home/Library/Preferences/ByHost/ folder. Look for a .plist file with "com.apple.loginwindow." in the file name followed by some numbers in hexadecimal. Select the file. Press COMMAND-I to open the Get Info window and in the Sharing and Permissions panel click on the lock icon and authenticate. Set each of the listed entries to Read Only. Close the Get Info window. If you also find a file with the same filename but with a last extension of ".lockfile," then you should delete it.
    The above should eliminate the Resume feature system-wide. Note that any future system updates or upgrades will likely undo these changes. You will then need to repeat this procedure assuming there are no major changes in OS X related to it.

  • How to open .dll files?

    I'm not sure I have the correct forum, but I thought I'd try here.
    I have .dll files I want to look at. I am unable to open them in any type of readable format. When I double click on them they open in Text Edit and jumbled up. I tried to open them in Preview and that didn't work either.
    Can someone guide me on how to open these files? OR if this is the wrong board, let me know and I'll post some place else.
    Thanks,
    Ginger

    No. A Windows DLL file is a library of machine code meant to be loaded by a piece of software. It's unreadable by humans. An experienced developer may be able to decompile the library into x86 assembly language.
    DICOM is an image format used for storing medical image data (such as MRIs, CAT scans, etc.). Many packages that work with DICOM packages have an "export to CD" function that will burn a CD with a directory of DICOM images, optionally with a copy of a program for displaying the images. It sounds like you have one of those CDs that's been burned with a copy of a Windows DICOM viewer. You won't be able to use that without a copy of Windows installed.
    However, that doesn't mean that you can't view the DICOM images. The most widely used DICOM viewer is probably [OsiriX|http://www.osirix-viewer.com>, which is free to download and use. Simple install, and use the import function to load a whole directory of DICOM images at once.

  • Anyone knows how to delete a file from a directory?????

    hi there
    anyone has any idea on how to delete a file from a directory? delete(String filename)? thank you.

    Hi,
    Check this link.
    Gives you an example code to show how to delete a file.
    http://examples.oreilly.com/jenut/Delete.java
    Hope this helps.
    Roopasri Vittal
    Developer Technical Support
    Sun Microsystems
    http://sun.com/developers/support

  • How to open a file created at the server through form/report at client end

    How to open a file created at the server through form/report at client end
    Dear Sir/Madame,
    I am creating a exception report at the server-end using utl file utility. I want to display this report at the client end. A user doesn't have any access to server. Will u please write me the solution and oblige me.
    Thanks
    Rajesh Jain

    One way of doing this is to write a PL/SQL procedure that uses UTL_FILE to read the file and DBMS_OUTPUT to display the contents to the users.
    Cheers, APC

  • How to open raw files in elements 11

    how to open raw files in elements 11

    Hi Have tried to do that but get a box with message along top "The file aready exists in the catalog"  it is also showing the incorrect file path and saying not connected to the path I have found the photo in.  The only differenct is that elements it saying it is in E drive and I have it in C drive the rest of the path is the same.
    The photos have imported into the my folders but I can't open any, every one i've tried to open brings up the box "searching for missing file" There are no photos in E drive the path it is saying doesn't exist all photos are in c drive, very very frustrating

  • How to open .vnt files in iphone

    how to open .vnt files in iphone

    virtualscott wrote:
    I was revisiting the WWDC from June and Jobs mentioned the ability view
    iWork files on the iPhone. I have done a lot of searching and have not
    found any answers. Can someone help, please?
    You can view them as email attachments.

  • How to duplicate a file in a directory to another directory?

    I am a student just has just learn some basic Java programming...May i know how to duplicate a file in a directory to another directory?
    How to start in doing this?
    Thank You

    I was suggesting to use java to send commands to the system shell so to speak....
    I don't know of a way to do this... under the File class you can delete files, but there is no provision to copy Files so to speak....
    one way would to be to open the file you want to copy with a file reader, and then write it all out to your new file.
    see http://java.sun.com/j2se/1.3/docs/api/java/io/FileReader.html for information of FileReaders

  • How to open .csv files?

    How can I open .csv files that are sent as attachments.  I get reports sent automatically from an app that only saves them as a .csv and I cannot find a way to open them on my BB.  I've looked at a few add on software options but none of the ones I've found open .csv files.
    Any ideas? 
    Thanks 
    8703e v4.1 and Blackberry Professional Software on the server

    Sorry, but .csv files are not currently a supported format.
    Supported attachment formats for BlackBerry mail and messaging

  • How to open downloaded files?

    Just picked up a Nokia lumia 822 and was wondering how to open downloaded files?  Through IE it appears i can only stream a media file and now download it. Through UC Browser it says its downloaded but seems to only let me stream it.  I want to download a song and add it to my music library, is that even possible?  Are there any 3rd party file manager apps?

    The easiest way to browse your phone is to connect it to a pc with a usb cable. The phone then becomes like a usb drive and you can then drag and drop your media files as required. 

  • How to open .vcm Files?

    Can any one tell me how to open .vcm files?
    I have a scenario, where one interface must executed followed by other interface.How can I achieve that
    Thanks

    Hi,
    Check this <a href="http://www.microsoft.com/windows/windowsmedia/forpros/codecs/vcm/faq.aspx">Link on opening .vcm file</a>
    Regards,
    Subhasha ranjan

  • How To open SysEx file in logic ??

    How To open SysEx file in logic and send it to a midi device (sound Module/sinthesizer/ drum machine)??
    Pleas help !!
    PowerBook G4 1.67GHz   Mac OS X (10.4.5)  

    Like for instance:
    i need to update an OS of my alesis sound module
    so i download the syx from the web site,
    and i do as the manual tells me :
    "open the syx with a sequencer program (can be logic or any other)
    use the midi Out (sequncer/computer)to the MIDI in of the module
    and run the sequencer, and the module will be updated "
    but the problem is when i run logic and import the file syx. logic says
    "SYX file imported not yet implemented "
    so maybe i am not doing it right

Maybe you are looking for

  • SG Scene Detect is a NOP -- how do the sensitivity controls work?

    I have a four minute clip that produces a complete flatline in SG Scene Detect. My guess is that it may have something to do with the content: it is 8mm film partially digitized to HD (i.e. SG/SD is part of the process) so is letterboxed  on L/R... I

  • Drag and Drop and java.io.NotSerializableException

    I have been implementing some code to essentially allow me to drag and drop from one JTree to another. The requirement was to be able to drag multiple nodes at one time and drop them on the other JTree in the order selected. I was getting a java.io.N

  • Do I need to create ip address to another switch when i use stack?

    Good Day! Please help me to answer this question in my title. I have 2 switches my old switch has configure ip address and i will use stack to my another switch the old one will be the primary and new switch is the secondary do i need to configure th

  • Constructing dynamic SQL

    Forms6000. In a when_button trigger, I've coded dynamic sql statements via the concatenation method, nested within IF statements using forms_DLL built-in. Through debugging methods have confirmed that the statements are in fact being dynamically cons

  • Why can't i set up my facebook account for sharing?

    Just upgraded to Mountain Lion, and I am trying to set up my facebook and twitter for sharing, but when I try to add my facbook in system prefernces, I cant find the facebook logo. All that is there is the following: Icloud Microsoft Exchange Gmail Y