Hi,
U can use
java.io.File
java.io.File dir = new java.io.File(" folder path");
String[] list = dir.list();
array will b containing the names of files and subfolders in the specified
folder.
shahzad
Sameer <[EMAIL PROTECTED]> on 11/15/2000 09:51:26 AM
Please respond to "A mailing list for discussion about Sun Microsystem's Java
Servlet API Technology." <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
cc: (bcc: Shahzad Mahmood/CresSoft)
Subject: directory info using java
hi everybody,
I need to get a list of all filenames and subfolders residing in a specific
directory because I need to make some changes in a lot of files.
Could anyone help me with a java application or applet which achieves the
above without of course changing each file individually.
thanks in anticipation,
Sameer
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html