Use the listFiles () method in java.io.File to get the files/directories in a certain 
path. Then if you want to traverse the directories in that one. Then I would suggest 
that you add them to a Vector and process them in the next pass.

Paul Franz


----- Original Message -----
From: "wangzhanwei" <[EMAIL PROTECTED]>
Date: Wed, 12 Jun 2002 11:04:41 +0800
To: "JDJList" <[EMAIL PROTECTED]>
Subject: [jdjlist] through directory and file


> 
> ----- Original Message -----
> From: wangzhanwei
> To: JDJList
> Sent: Wednesday, June 12, 2002 10:43 AM
> 
> 
> Hi all:
>    I am trying to make a java soure to through directory(eg: d:\) in order
> to find all file and count file lines.But I  only reached end of a directory
> and find some files, and other directory is not reached.
> Please help me how to do it.
>   And tell me , what Java API and where other Open Sourec can supply a
> perfect java for me.
> 
>   Thank you.
> 

Content-Type: application/x-javascript; name="Converter.java"
<< Converter.java >>

Content-Type: text/plain; charset="us-ascii"

> To change your membership options, refer to:
> http://www.sys-con.com/java/list.cfm
> 

-- 
_______________________________________________
Sign-up for your own FREE Personalized E-mail at Email.com
http://www.email.com/?sr=signup


To change your membership options, refer to:
http://www.sys-con.com/java/list.cfm

Reply via email to