Re: io: how many imgs in 'images' folder?



Nigel Wade wrote On 03/30/07 09:45,:
Eric Sosman wrote:


maya wrote On 03/29/07 13:55,:

is it possible to determine how many files are in a given directory..

Use the list() or listFiles() methods of a File object
representing the directory.



Also note that list() and listFiles() are overloaded methods. List() can be
passed a FilenameFilter and listFiles() a FileFilter so you can chose which
files are returned by the methods.

That's why I wrote "list() or listFiles() methods"
instead of "list() or listFiles() method."

--
Eric.Sosman@xxxxxxx
.



Relevant Pages

  • Re: io: how many imgs in images folder?
    ... Use the listor listFiles() methods of a File object ... determine how many photos are in 'images' folder for each page, ... populate an array ...
    (comp.lang.java.help)
  • Re: io: how many imgs in images folder?
    ... Use the listor listFilesmethods of a File object ... Also note that listand listFiles() are overloaded methods. ... University of Leicester, Leicester, LE1 7RH, UK ...
    (comp.lang.java.help)
  • Re: io: how many imgs in images folder?
    ... Use the listor listFilesmethods of a File object ... Also note that listand listFiles() are overloaded methods. ... University of Leicester, Leicester, LE1 7RH, UK ...
    (comp.lang.java.help)