Please join us at the new JavaWorld Q&A Forums. Your existing login will work there. The discussions here are now read-only.


JavaWorld >> Java Beginner

Pages: 1
sneha
journeyman


Reged: 06/23/05
Posts: 60
Help Reading a Java Image File
      #24175 - 11/21/05 10:16 PM

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


Post Extras: Print Post   Remind Me!   Notify Moderator  
hiwa
Carpal Tunnel


Reged: 06/21/03
Posts: 7704
Loc: Japan
Re: Help Reading a Java Image File [Re: sneha]
      #24177 - 11/21/05 10:28 PM

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*


Post Extras: Print Post   Remind Me!   Notify Moderator  
Michael_Dunn
addict


Reged: 10/23/03
Posts: 513
Re: Help Reading a Java Image File [Re: sneha]
      #24180 - 11/21/05 10:29 PM

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)


Post Extras: Print Post   Remind Me!   Notify Moderator  
codefetch
stranger


Reged: 10/14/05
Posts: 6
Re: Help Reading a Java Image File [Re: sneha]
      #24528 - 11/29/05 04:04 PM

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!


Post Extras: Print Post   Remind Me!   Notify Moderator  
Pages: 1



Extra information
0 registered and 184 anonymous users are browsing this forum.

Moderator:   

Print Topic

Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is disabled
      UBBCode is enabled

Rating:
Topic views: 2830

Rate this topic

Jump to

Contact us JavaWorld

Powered by UBB.threads™ 6.5.5