Results 1 to 2 of 2
  1. #1
    tshaked is offline Member
    Join Date
    Aug 2007
    Posts
    1
    Rep Power
    0

    Default iteration on huge amount of files in a folder

    Hi, I have a huge amount of files in a folder, and I need to do an iteration for each file in there. Using listFiles() method can throw a out of memory exeception in this case (also using FileFillter won't help). Any idea how to do it ?

  2. #2
    levent Guest

    Default

    If your memory can not get the list of file names as string array, then i dont think there is any way to do that if you ca not use FileFilters. May be if you can find a platform dependent command to get a portion of file names in an incremental way, you can run it from Java.

Similar Threads

  1. Replies: 0
    Last Post: 04-07-2008, 07:56 PM
  2. Replies: 2
    Last Post: 02-18-2008, 04:24 AM
  3. add password to folder
    By ismailsaleh in forum AWT / Swing
    Replies: 1
    Last Post: 01-08-2008, 05:46 AM
  4. Enum Iteration
    By A.Russell in forum New To Java
    Replies: 1
    Last Post: 08-15-2007, 12:17 PM
  5. how to use class in upper folder
    By osval in forum New To Java
    Replies: 1
    Last Post: 08-06-2007, 08:55 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
  •