I have many .doc files that all have the same formatting and hard coded questions (Facility Code, File Name, File Date, Total Records). These questions are always the same in each .doc I am trying to pull the data after each specific set of questions as shown below a:
----------------------------------------- *.DOC FILES
/* NEED THE "ABCD" */
Facility Code: ABCD
/* NEED THE "FILETYPE" */
File Name: 20090722.ABCD.FILETYPE.TXT
/* NEED THE "07/22/2009" */
File Date: 07/22/2009
...........
...........
...........
5. Do the records have the correct number of fields? Yes
Total lines 8
/* NEED THE "7" */ Total records: 7
Total failed format: 0
Total percent failed: 0
----------------------------------------------------EOF
Output to a .txt file should =
ABCD|FILETYPE|07/22/2009|7
CDEF|FILE1234|08/01/2009|12
etc....
THANKS IN ADVANCE!
----------------------------------------- *.DOC FILES
/* NEED THE "ABCD" */
Facility Code: ABCD
/* NEED THE "FILETYPE" */
File Name: 20090722.ABCD.FILETYPE.TXT
/* NEED THE "07/22/2009" */
File Date: 07/22/2009
...........
...........
...........
5. Do the records have the correct number of fields? Yes
Total lines 8
/* NEED THE "7" */ Total records: 7
Total failed format: 0
Total percent failed: 0
----------------------------------------------------EOF
Output to a .txt file should =
ABCD|FILETYPE|07/22/2009|7
CDEF|FILE1234|08/01/2009|12
etc....
THANKS IN ADVANCE!