First I would like to say Thanks for the help that I have received so far.
I have 2 question on how to use Regular Expressions.
Here is an example of the data that I am dealing with.
Header Line One
***-*** 0 0 ***-MBO 0 0
2TO-T/V 0 0 2TO-T/O 0 0
POC-CNU 1285 0 POC-A/M 0 15567
Header Line Two
***-*** 0 0 ***-MBO 0 0
2TO-T/V 0 0 2TO-T/O 0 0
POC-CNU 1285 0 POC-A/M 0 15567
1) I am looking for a way to read a line in and look for the first 7 characters. The Characters can start with a
. It does this until it reads the line that says "Header line two" which starts the next file.
2) Also how would I do an error check for duplication.
What I mean is if for some reason "Header Line two" is skipped over. And the next line is the same as in "Header line one" than I would need to produce an error. how would I go about doing this.