Reading all files in directory

Hi

I need to read all the files inside a directory where my app resides. I have the following:

File file = new File(args[0]);

Reader reader = new FileReader(file);

BufferedReader bufferedReader = new BufferedReader(reader);

This works fine for one file, but i have many files I would like to

read in this directory. I was hoping I could just do:

java MyApp *

but it doesn't work. thanks in advance for any help.

J.

[476 byte] By [jomontal] at [2007-9-27 16:47:57]
# 1
rtfm http://java.sun.com/products/jdk/1.1/docs/api/java.io.File.html#list()
danperkins at 2007-7-6 1:05:57 > top of Java-index,Archived Forums,New To Java Technology Archive...