File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Reading Directory Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Reading Directory" Watch "Reading Directory" New topic

Reading Directory

vinod kumar

Joined: Jan 24, 2005
Posts: 15
Hi all,
I am struck with a problem.
I want to read a folder and find the total number of files inside the folder. I also want to access the modified date of the file (To delete the first modified file if the count exceeds some value)...
Please help me out..Any info regarding this is welcome

Thanks in advance
Gareth Faulkner

Joined: Oct 29, 2004
Posts: 22
You just need to use the class

I have some sample code if you need any more help with this...

subject: Reading Directory
It's not a secret anymore!