Thread
:
reading files from a directory and printing
View Single Post
10-29-2004, 05:01 AM
#
5
(
permalink
)
Belisarius
Java fanboy
Join Date: Aug 2003
Posts: 1,139
You'll want to look at the Javadoc for
String
. Instead of split, you could use endsWith() to figure out which ones end with .cyt. Also, provided all the .cyt files have the same naming scheme, you could use substring to cut off the first 3 letters.
__________________
GitS
Belisarius
View Public Profile
Find More Posts by Belisarius