one idea... rename the file from .txt to .processed or something. And have this only read .txt files. Then another cron job could run once a day or something to remove the .processed files?