Looping (Directory Listener?)

Joined
Aug 18, 2007
Messages
1
Reaction score
0
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 ^^
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,990
Messages
2,570,211
Members
46,796
Latest member
SteveBreed

Latest Threads

Top