On the one hand I have a .TXT file which is a copy (snapshot) of a bank account statement.
On the other hand I have a DataBase with fields DATE NAME SNO Amount .
Amonst the lines SOME of them (the only one's I am interested in) will have the following
data which I need to capture into the DataBase:-
DATE SOMENAME SOME_NUM DOLLARS.
The lines in the .TXT file appear as follows:-
33382190495 DATE DEPOSIT - ER SOMENAME SOME_NUM DOLLARS
33382190495 DATE DEPOSIT - ER ANOTHERNAME SOME_NUM DOLLARS
Where the constants in the only lines I am interested in are
33382190495 [Some space] A DATE [Some space] DEPOSIT [Some space] - [Some space] ER [Some space]
as above.
After that there would be [SOMENAME] [Some space] [8 Characters] [Some space] [Money]
The ONLY variables would be
DATE (Varying from line-to-line)
SOMENAME (Which would be someone's last name and vary in length from line-to-line.)
DOLLARS (Which could be any amount.)
What code can I use to scan this data so that I can capture the data I want from these
lines only into the above DataBase fields?
Anybody...? Puhlease??