Possible Duplicate:
Is there a workaround for Java's poor performance on walking huge directories?
I created a utility which lists all the files within some directory by using File.listFiles() function, but the problem occurred when i copied huge amount of files (around 100K) under that directory.
I was looking for some solution take actually takes some fixed no of files (say X) from that directory and processes and then deletes those files and takes next X number of files. Can any one please suggest me any solution.
Regards