Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reading Window files 1

Status
Not open for further replies.

KentCoon

MIS
Aug 11, 1999
10
CA
<br>
Hey, I'm new to Java Programming. So I'll need lot's of help! My very first question is:<br>
Does anyone know how to make one of you applications read file names like explore does on windows?<br>
<br>
Thanks buddies.
 
Hi!<br>
<br>
Use the File class for the root directory, and the list() method will give you an array of strings of files and directories. Make a new File class for each item, and if the item isDirectory() then do a recursive read.<br>
If I was difficult, tell me, and I will write small example.<br>
<br>
Good luck. Bye, Otto.<br>

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top