• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Reading Directory

 
vinod kumar
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You just need to use the java.io.File class
http://java.sun.com/j2se/1.4.2/docs/api/java/io/File.html

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

Gareth
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic