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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Listing files in a directory

Status
Not open for further replies.

cgillin

Programmer
Mar 20, 2003
58
US
I have to be able to list all of the files that are in the current directory that I'm running a program in. Does anyone know how to do that?


Thanks for the help
Chris
 
Use list() method of File class in conjunction with isFile() method.

Regards, Dima
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top