Please see the documetation of File class in java.io package. There is a list() method to do the same.
Regards,
Chandra

The statements and opinions expressed here are my own and do not necessarily represent those of Oracle Corporation.

 

-----Original Message-----
From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Lisa Xu
Sent: Monday, September 03, 2001 5:58 PM
To: [EMAIL PROTECTED]
Subject: Re: does anyone how to list all files in the specific directory ?

List all your files and redirect them to a new file then cat, vi or what ever
eg ls -a > filename
 
Lisa
----- Original Message -----
From: chenghong
Sent: Thursday, July 05, 2001 12:12 PM
Subject: does anyone how to list all files in the specific directory ?

does anyone how to capture all filename in a directory ??
 
thanks
cheng hong.

Reply via email to