does anybody has an idea of parsing the filename of the textfile and its contents and insert to database..

example..

format of the filename:[date]

[time]
201089 1-111 93300.txt
contents of the text file:
12345 John Robinson
54321 Robert svenson
the table where the information should be inserted has this
fields.. name of table: logs
[ID] [name] [date]