Results 1 to 2 of 2
  1. #1
    mrjunsy is offline Member
    Join Date
    May 2008
    Posts
    3
    Rep Power
    0

    Default Reading a directory and getting the filename

    Hi,

    Ive been trying to figure out how...How can I read a data directory and retrieve each filename of the files into my code.
    thanks!

  2. #2
    sukatoa's Avatar
    sukatoa is offline Senior Member
    Join Date
    Jan 2008
    Location
    Cebu City, Philippines
    Posts
    556
    Rep Power
    7

    Default

    You can start to read File Class.

    There is a listFiles() method that returns array of abstract pathnames
    freedom exists in the world of ideas

Similar Threads

  1. Replies: 6
    Last Post: 10-27-2008, 12:25 AM
  2. How to get Current Directory through File
    By Java Tip in forum java.io
    Replies: 0
    Last Post: 04-05-2008, 10:14 AM
  3. JFileChooser example (selecting a directory)
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 03-14-2008, 12:02 PM
  4. Traversing a directory
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 01-14-2008, 09:33 AM
  5. How can i get current directory?
    By Ashley in forum New To Java
    Replies: 1
    Last Post: 05-26-2007, 01:21 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •