Hi All,
I have a folder with lots of file. Is there any way that I read each
file of this folder using Java?
Thanks
Andrew Thompson - 06 Oct 2006 10:56 GMT
...
> I have a folder with lots of file. Is there any way that I read each
> file of this folder using Java?
Sure, you can make a File from a folder. Look closely
at the File methods for your answer.
Andrew T.
Jussi Piitulainen - 06 Oct 2006 10:58 GMT
> I have a folder with lots of file. Is there any way that I
> read each file of this folder using Java?
The main class to do with file names is java.io.File. It has
a method for getting the names of the files in a directory
as File[], among other things.