Looping (Directory Listener?)

Discussion in 'Java' started by oneperson, Aug 18, 2007.

  1. oneperson

    oneperson

    Joined:
    Aug 18, 2007
    Messages:
    1
    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 ^^
     
    oneperson, Aug 18, 2007
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Danish Ahmed

    .net remoting and tcp listener socket

    Danish Ahmed, Apr 20, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    3,801
    Danish Ahmed
    Apr 21, 2005
  2. James

    file / directory listener

    James, Jul 5, 2004, in forum: Java
    Replies:
    2
    Views:
    21,625
    Jacob
    Jul 6, 2004
  3. Elaine Jackson

    looping over the files in a directory

    Elaine Jackson, May 14, 2004, in forum: Python
    Replies:
    8
    Views:
    304
    Daniel 'Dang' Griffith
    May 17, 2004
  4. Steve Holden

    Re: Looping through files in a directory

    Steve Holden, Nov 11, 2010, in forum: Python
    Replies:
    3
    Views:
    334
  5. giuseppe.amatulli@gmail.com

    looping in array vs looping in a dic

    giuseppe.amatulli@gmail.com, Sep 20, 2012, in forum: Python
    Replies:
    5
    Views:
    289
Loading...

Share This Page