I am reading in a text file that is formatted as below:
And need to get this:
How would you do this? My ONLY challenge is that I don't have an end of record marker, aside from the beginning of the next record.
I need to retain the data lines until I hit a new record - then output the previous record and go on from there.
I have come across the concept of List Collection but am uncertain if that is the best way to proceed.
Thank you,
Vincent
VB.NET:
Record1 Data
More
More
Record2 Data
Record3 Data
Record4 Data
More
More
More
More
More
Record5 Data
More
And need to get this:
VB.NET:
Record1 Data More More
Record2 Data
Record3 Data
Record4 Data More More More More More
Record5 Data More
How would you do this? My ONLY challenge is that I don't have an end of record marker, aside from the beginning of the next record.
I need to retain the data lines until I hit a new record - then output the previous record and go on from there.
I have come across the concept of List Collection but am uncertain if that is the best way to proceed.
Thank you,
Vincent