• Post Reply Bookmark Topic Watch Topic
  • New Topic

files count in a directory using FileConnection

 
sivakumar arani
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there any way to find the number of files present in a directory?
presently i am using 'Enumeration e = filecon.list();' and iterating through while loop and counting. but application is getting stuck-up in this case when no. of files is large.

any ideas please help

thanks in advance
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!