Well, it puts the lines from the file into an array. Then it should be a straigtforward process to do whatever you want with those elements.
The other question you asked will have to involve some sort of a cron (or Windows version of it) if you want the task to be performed without user intervention.