sneha
journeyman
Reged: 06/23/05
Posts: 60
|
|
Hello
I wrote a program to read a Image this works perfectly fine. I have a directory which contains 20 images I have to read one afrer the other. But my question is how do I check wether I read all the images from that directoty or not
Thanks in advance Sneha
|
hiwa
Carpal Tunnel
Reged: 06/21/03
Posts: 7704
Loc: Japan
|
|
See java.io.File#list() method or listFiles() method.
-------------------- *stop cruelty* Annual number of euthanized cats&dogs: US 5M, JP 500K.*for our better karma*
|
Michael_Dunn
addict
Reged: 10/23/03
Posts: 513
|
|
look up the api docs for File
http://java.sun.com/j2se/1.5.0/docs/api/java/io/File.html
go through each of the methods (one will stand out)
|
codefetch
stranger
Reged: 10/14/05
Posts: 6
|
|
A quick Codefetch search for "files directory" found this source code example listing files in a directory from the book Learning Java
-------------------- java.codefetch.com
Search for Java source code snippets from dozens of books!
|