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

    Default Reading a directory and getting the filename


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

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


    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, 01:25 AM
  2. How to get Current Directory through File
    By Java Tip in forum
    Replies: 0
    Last Post: 04-05-2008, 11:14 AM
  3. JFileChooser example (selecting a directory)
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 03-14-2008, 01:02 PM
  4. Traversing a directory
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 01-14-2008, 10:33 AM
  5. How can i get current directory?
    By Ashley in forum New To Java
    Replies: 1
    Last Post: 05-26-2007, 02: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