Possible Duplicate:
Size of folder or file
How to do such a loop that will check the file size, and if it change then output something ? Not only once, but every time to sho开发者_运维技巧w something if the size change
Java 7 has support for this without polling the file system see here
精彩评论