Thread
:
reading files from a directory and printing
View Single Post
10-28-2004, 07:26 AM
#
2
(
permalink
)
Belisarius
Java fanboy
Join Date: Aug 2003
Posts: 1,166
You probably haven't looked at the Javadocs for
File
. File can either represent a standard file, or a directory. If it's the latter, you can use the list() method to get an array of Strings listing the contents of the directory.
__________________
GitS
Belisarius
View Public Profile
Find More Posts by Belisarius