Results 1 to 3 of 3

Thread: File folders

  1. #1
    Join Date
    Jun 2011
    Posts
    24
    Rep Power
    0

    Default File folders

    Hi,

    I have a main folder. This main folder contains folders with files. I have to read files folder by folder from mail folder. Can someone help me on the logic?

    thanks

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    14,793
    Rep Power
    20

    Default

    Use the File class to get a list of the contents of a folder.
    If there are folders in this list (File has a method to test for folders), use the File class again to get a list of the files in that folder.

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Moderator
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    9,937
    Rep Power
    16

    Default

    ... recursively.

    db

Similar Threads

  1. Access files in folders and sub-folders
    By kakinyim in forum CLDC and MIDP
    Replies: 0
    Last Post: 05-18-2011, 09:29 PM
  2. Replies: 4
    Last Post: 10-10-2009, 12:26 AM
  3. Replies: 0
    Last Post: 01-29-2009, 10:43 AM
  4. Replies: 20
    Last Post: 12-17-2007, 03:20 PM
  5. Replies: 2
    Last Post: 11-27-2007, 01:45 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
  •