I have a static java program that searches a folder for the most recently made file, parses the file for a few keywords, and then creates an organizational chart based on the keywords it finds. How can I get this program to update(run) itself if a new file gets added to the folder? Any tutorials that may be of help? I’m pretty new to programming in general.
Share
You’ll probably want the Java WatchService: http://docs.oracle.com/javase/7/docs/api/java/nio/file/WatchService.html
Tutorial here: http://docs.oracle.com/javase/tutorial/essential/io/notification.html