Txt File Parser Script

Txt File Parser Script
Hello,

I am looking for a small php script that when I load a | a pipe deliminated file into the script it would place a date to the data on every line starting with the current server date.

So it would add mm/dd/yy| to each line with the date being addeded with the pipe end | to in groups of two. so it would would change dates for every two items like

02/27/10|content
02/27/10|content
02/28/10|content
02/28/10|content

and so on..

It would continue like a calendar for the remainder of the file line by line

of course of the data present is more than one line it would still look for the break of the | to determine the next line to continue the theory.

Please advise.

Leave a Reply

Your email address will not be published. Required fields are marked *