Login  Register

Re: getFileList

Posted by Rasband, Wayne (NIH/NIMH) [E] on Jul 01, 2010; 2:54am
URL: http://imagej.273.s1.nabble.com/getFileList-tp3687759p3687760.html

On Jun 30, 2010, at 4:32 PM, GAUTAM SHANKAR wrote:

> Hi,
>
> I'm writing a plugin, I would like to use getFileList() method
> in my program.
>
> Other methods I am able to use such as ... IJ.getDirectory
> ("Choose a directory");
>
> But this doesnt work for getFileList().
>
> Where can I find this method at?

You need to use the list() method of the File class:

    http://java.sun.com/j2se/1.4.2/docs/api/java/io/File.html#list()

-wayne