Hello all of you who reads this question .
First, i do not know how to say, but I kinda need to read files which are incoming after some time and new ones are stored in var/incoming/maws/6451 old ones are in var/incoming/maws/archive/6451. File name are "MetMan100090622071011.rep (the last numbers are for time, when file is formed) The file itselfs contains data like(S:6451;D:060622;T:071006;TA:17.8; and so on), but i need only read specific value TA:17.8 wich is for temperature and time in particular order YYY/mm/d and export it to CSV in that order(YYY/mm/d HH:mm:ss;17.8;) file so that it could be imported into mySQL database.