How do you find out the name of a file in a specific folder

The problem I have is that I want to read from a file located on the harddrive. I know where it is located and that it is the last updated folder, but not the name of it.
The reason for why I want the name is that I want to read som values from that specific file.
Hope for fast answer.
//Emelia

Check out the File.list() and File.lastModified() methods:
http://java.sun.com/j2se/1.4.2/docs/api/java/io/File.html

Similar Messages

  • How can you find out if another VI running on the same computer and how can you find out the name of that VI?

    Suppose that several VIs running simultaneously on the same computer. How can I find out the names of the running VIs, from another VI?
    If the already running VIs are clones of the same basic VI, open and run with the option "Prepare to call and forget", how can I find out the names and index of each clone? 

    I had an application where I spawned (= ran with Start Asynchronous Call) multiple (reentrant) copies of VIs, and would occasionally "lose control" of them.  I needed a way to find all VIs that were running "Top Level" and stop them (so I didn't have to log off from Windows).
    I used the Application Property "All VIs in Memory" to get an array of (wait for it ...) All VIs in Memory.  I took each name, opened a VI reference to it (simply wire the name string in, as the VI is, by definition, "in memory"), looked at its VI Execution State, and if it was Run Top Level, Invoked the FP.Close and Abort VI Methods.  [To prevent the VI that did all this from "committing Suicide", I compared the name string with the current Call Chain, and did nothing if there was a match].
    I think you could adopt this idea to do what you need.
    BS

  • How do I find out the name of my wireless chipset/interface?

    I'm doing a install of Arch and I need to setup my WLAN.
    So the wiki says:
    "After finishing the rest of this installation and rebooting, you can connect to the network with wifi-menu interface_name (where interface_name is the interface of your wireless chipset). "
    How do I find out the name of my interface?
    Last edited by psycho_tea_drinker (2013-07-03 12:36:40)

    psycho_tea_drinker wrote:
    hokasch wrote:
    Check your chipset (lspci), see if the corresponding kernel module got loaded. Look for dmesg errors. Another way to check device names (from the wiki):
    $ ls /sys/class/net
    How do I check if the kernal module got loaded?
    lspci | grep net
    > only shows my ethernet controller
    lsusb
    > does not show it ethier
    I forget to mention that it is a USB wifi dongle (Tplink TL-WN722N). And I'm also running within virtualbox - I hope that does not complicate matters?
    Probably. You'll need to make sure that VB guest can see your USB ports. You'll need the VB wiki pages for that though.
    I don't use it, so can't help, sorry.
    Last edited by skanky (2013-07-03 13:12:46)

  • How do i find out the name of my out going server?

    Trying to set up an email account. It's asking , "what's the name of you out going server?" I don't know the name of my outgoing server. How can I find out the name of my "out going server?" Thanks in advance for any help on my question.

    Your provider names their servers. You need to ask them or do a search for email settings for your provider.

  • How do I find out the name of an area menu?

    I can see a report with a specific t-code in an area menu, how can i find out the name of the area menu, when i need to edit it in se43?

    Do a where used list for the tcode in SE93. select area menu in the list.
    Regards
    Sridhar

  • How do you find out the contacts that were updated via Facebook and twitter in the settings without having to figure it out manually?

    How do you find out the contacts that were updated via Facebook and twitter in the settings without having to figure it out manually?

    There is no such list of what is downloaded to each phone except in the backup. So if you have a recent backup of each phone you should be able to find an app that reads the backup files and would tell you what list is saved of the content on each phone.

  • How do I find out the size of a file, trying to make a DVD and told the fil

    Made a slide show project with music and trying to write to dvd. Computer tells me the file is to large and to use a dual sided disk. I cut may slides out but no luck. How do you find out the file size?

    Hi
    And SlideShows has a limit of 99 slides per show.
    I rather assemble mine in iMovie HD 6 where as QuickTimeKirk states
    it only has Time as a limit dep. on encoding method selected and if Single or Double layer DVDs
    Single Layer (for DL double time) - TIME includes menu - keeping it simple gives more to movie.
    (I prefere "Brushed Metal" no audio, no animation.)
    • Professional Quality (movies up to 120 min.) - BEST
    • Best Performances (movies less than 60 min.) - High quality on final DVD
    • High Quality (in iDVD08) / Best Quality (in iDVD6) (movies up to 120 min.) - slightly lower quality than above
    Yours Bengt W

  • How can I find out the name of an artist in the download library?

    Yesterday my friend configured his iPod nano. At the end of the setup, a library of some 30 songs was downloaded to his iPod. He told me he loved one of the songs called Sons and Daughters, but the album/artist displayed as Anonymous. It's a moving antiwar song about the Iraq War. I listened and loved it too.
    How can we find out who the artist is? Also, how does Apple select the tunes to include in the free download? It's possible that lots of people have heard this song and would like to find out more about it as well.

    It was downloaded automatically from itunes at the end of the setup.
    Okay, but how did the music get into iTunes?
    You had to get the music from somewhere...

  • How do you find out the answers to your security questions if you forgot them

    How can I find out what the answers to my security questions are?

    1)  Apple ID: All about Apple ID security questions
    If necessary
    2)  See Here... ask to speak with the Account Security Team...
    Apple ID: Contacting Apple for help with Apple ID account security
    3)  Or Email Here  >  Apple  Support  iTunes Store  Contact

  • How can i find out the Location of fmx file in the forms

    Hi,
    I want to find out the drive name,WHich Contains Fmx file. How can i find it out(at run time) .
    It should be found inside the form.So that i can pass it as a parameter to a Procedure.
    Thanlks in advance.
    regards,
    Alok Dubey

    hi,
    if you are using Client/Server forms with d2kwutil then this should return form full name :
    win_api_environment.get_working_directory() || get_form_property(:System.Current_Form,FILE_NAME)
    engin.

  • How can I find out the name of the folder my java program is in?

    Hi, I'm trying to make a little utitlity that makes a bunch of url shortcuts based on the name of the folder I run the java from.
    i.e.
    I have my executable jar in C:/Someplace/My Folder Name/
    I'd like to be able to double click on the jar and it creates the url shortcuts for me using "My Folder Name" as a parameter.
    I've done the shortcuts bit but can't figure out (=find a tut) how to read the folder name.
    Thanks to anyone who can help!

    import java.io.*;
    import java.net.*;
    import java.security.*;
    public class Attempt {
        public static void main(String[] args) throws IOException {
            System.out.println(new Attempt().getFolder());
        public File getFolder() throws IOException {
            ProtectionDomain domain = getClass().getProtectionDomain();
            CodeSource source = domain.getCodeSource();
            URL url = source.getLocation();
            if (!"file".equals(url.getProtocol())){
                throw new IOException("Code source location not a file:" + url);
            String path = url.getPath();
            //remove xxx.jar from path:
            return new File(path.substring(0, path.lastIndexOf('/')));
    }

  • How can you find out the balance on my I tunes gift card?

    I bought two $ 100 gift cards and both found to be redeemed although the cards were in my safe and the code was intact covered with plastic. Finally Apple put the money back into the defective cards. My question is how to find out whether the cards are good and have $ 100 value each? If I use my I phone then the amount will go to my account and I seldom use I tunes cards. The cards we bought is for our son and daughter. Secondly I bought the cards from Best Buys and both the cards were in my possession with gift wrap. How on earth the cards were redeemed? Appreciate any feedback. Thanks.
    Notredame99

    Hi there notredame99,
    You may find the information in the article below helpful.
    iTunes Store: iTunes Gift balances
    http://support.apple.com/kb/ht5035
    -Griff W. 

  • How do I find out the name if I on;y have a technical ID

    I have a tech id but I do not know what object this refers to.  Is there a way to find this

    It may be difficult until and unless its a Standard object.
    Better way is to use search option in RSA1 and type in the technical name to find out which object it indicates to
    Hope it helps
    Sriman

  • How do you find out the angle degree of type that has been rotated?

    I have manually rotated some type. It's not rotated a standard number of degrees and I'd like to find out what that number is. Do you know if there is a place in Illustrator that gives this informatiion because I sure as heck can't find it.

    You are supposed to be able to measure angles using the Measure Tool. I find this completely unreliable, because it fails to abide by Snaps. (Absolutely hideous.)
    This page describes an AI Javascript you can download and try, for un-rotating textframe objects.
    JET

  • How do you find out the balance on a Gift Card you have redeemed?

    Got $15.00 from niece for Christmas. I've redeemed the Card and then proceed to purchase some songs I would have normally purchased over a spread out Period. Yet I am receiving receipts as if purchased on my Credit Card.
    How do I know if the purchases are being credited to the Gift Card? Times are tight ad I am getting ready to purchase a new Mac Laptop.

    You get a receipt for any purchase, regardless of the payment method. You even get receipts for free content. So the fact that you're getting a receipt doesn't mean that your credit card is being charged. Look at the balance shown at the upper-right of the iTunes window when you're on the iTunes Store, just to the left of where it shows your account ID. If charges are going to your credit balance, that will be decreasing as you make purchases, though sometimes you have to sign out of your account and back in to refresh the display.
    Regards.

Maybe you are looking for