Hi
I just want to know whether is there a way to get a portion of the total files from a directory so that I can move the portion of files to another directory. For example I have 1000 files in a directory and I want to move 200 of these files to another directory then will continue move another 200 and so on. The only way I can think of is using counting such as starting count from 1 till 200. Is there a way to make the hasnext() method to stop at 200 records when looking for files? Or is there another
java method to do this.
Thanks and much appreciated.