public String[] getAllFiles() throws Exception
        {
           File objfile = null;
           String strArrFileList[] = null;
           try
           {
                   objfile = new File("c\\dirname\\");
                   if (objfile.isDirectory())
                   {
                         strArrFileList = objfile.list();
                   }//end of if
           }
           catch (Exception e)
           {
                System.out.println("Exception in getAllFiles " +e.toString());
                throw e;
           }
           finally
           {
                   objfile = null;
           }
           return strArrFileList;
        }//end of method..

Regards,
Mittal S.Bhiogade
GE-Supply,
Corporate Drive,
6th Floor,
Shelton, CT,
DialComm ( 8* 203 3005)
Phone  (Work) 203-9443005
Phone  (Home) 203-9245679


-----Original Message-----
From: Faxin Zhao [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 05, 2002 7:33 AM
To: [EMAIL PROTECTED]
Subject: Re: How to get the files's names?


Hi Mittal,

Thanks for your email.

Yes, I need your code. Would you please mail me this morning?

Best Regards,

Faxin

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to