John Yeary: Java 6 File Monitoring Example
I was asked today how you would monitor a file for changes using Java 6. Since Java 7 has added some great File handling features that I use, it was a reminder that not everyone is so lucky to use Java 7. I remembered an example from Geosoft, and I found their example code FileMonitor.java. It is a simple and elegant solution to monitoring files and directories for changes. This is by no means a complete example, but does show a simple technique...