You should use a DirectoryStream. Documentation can be found at: http://docs.oracle.com/javase/7/docs/api/java/nio/file/DirectoryStream.html
Java: Select the first file in a directory
Frage
I'm asking for a Java code.
I'm looking for a way to select the first file in a directory in order to process it.
Thanks.
Lösung
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow