Hi I'm currently writing a program, which has to listen for any new files inside a particular folder, do a reading of all the new files in the folder, extract the data, put it in the database, and finally removing the processed files from the directory. I've done most of these (the reading, extracting and storing). However, i'm not sure how to keep the process looping. What i need now is for the program to keep looping, checking for changes, and do its work in the background (while the user does other things using the same program (search, etc)). I've tried to search for ways to use a Listener, but i'm not really sure how to use it. Or is there any other good alternatives to do the looping? (I'm currently using NetBeans IDE 5.0)
Any form of help is greatly appreciated. Thanks in advance ^^
Any form of help is greatly appreciated. Thanks in advance ^^