Hi all!
How do I get a list of names of the files in a directory?
Here is a Java code example, in case my question isn't clear:
File f = new File("c:\myDir"); File [] filenames = f.listFiles();
Thanks!
$dir = dir("pathtodir"); while ($file = $dir->read()) { if (($file != ".") && ($file != "..")) { $filelist[] = $file; } }
Now the array $filelist holds the filenames excluding the . and ..