|
-
Jul 29th, 2010, 09:08 AM
#1
Thread Starter
New Member
[RESOLVED] Parsing Help Please
I am reading in a text file that contains multiple records in it. Each record when broken out and written to a new text file has to contain specific lines. The problem is finding a unique point to break up the records.
Here is an example of the text file.
0105159-5 SH100523110630100521
08MI9204000
08SU9255054B
13BP06106283AA POO1261181B
16EA
19NAFTA PILOT GROUP F 0000000000
20SF9255054C
20ST9204199
20MA9204199
27D G
28+00000000000ZZ100521
13BP06106283AA POO1261181B
16EA
19NAFTA PILOT GROUP F 0000000000
20SF9255054C
20ST9208481
20MA9208481
26DK99
27D G
28+00000000000ZZ100521
13BP06106283AA PONA
16EA
27Y Y
28+00000000008DM110307
28+00000000016DM110404
28+00000000024DM110502
28+00000000036DM110606
There are 2 records in this example.
The yellow section is the headerlines that needs to go into both files with each record.
The red section is one record.
The blue section is the second record.
Can't figure a way to separate these out. PLEASE HELP!!!!
Last edited by edihelp; Jul 29th, 2010 at 09:58 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|