Thanks, for your reply. I think I will try to write something using the readfile(), search for the dates required and then writefile() to a temp file, then replace the original file.