//Try This: import java.io.*;
public class FileListing { public static void main(String[] args) { String[] fileList = null; File directory = new File("d:/temp"); if(directory.isDirectory()) fileList = directory.list(); String path = directory.getAbsolutePath(); for(int i=0; i<fileList.length;i++) { File f = new File(path + File.separator + fileList[i]); if(!f.isDirectory()) System.out.println(fileList[i]); } } } Regards Imran VisualBuilder.com -----Original Message----- From: Steven Leija [mailto:[EMAIL PROTECTED]] Sent: 13 November 2001 15:22 To: '[EMAIL PROTECTED]' Subject: OT: Dynamically Reading In Property Files Hello All, I'm creating an application and deploying in a war file. I have a directory that contains * number of xml configuration files. Does anyone know how to read a directory and gather a collection of file names? Thanks for any help! Steven -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>