I have an input file with a couple of records, each records has the format
– 3 bytes: record length (including CR LF at record end)
– 4 bytes: record ID, (example: ID 3000 in 6th line stands for patient ID, ID 3103 in 10th line stands for date of birth…)
– variable length: value
– 2 bytes: Carriage Return, Line Feed
A sample for a input file looks like this:
01380006302
014810000227
0178315Auuuuuuu
0178316TurboMed
014921802.00
01330002084
0093100
0173101LastName
0233102Firstname
017310301011957
0093104
024310648231 Berlin
0303107Charlottenburgerstr. 36b
01031101
0138402EKG04
The content of the file has to be translated into one ADT A01.
What approach is better to read the file into a structure, VRL or HRL?
I tried with VRL but had no success. For me it seems that CR+LF as record delimiter do not work.
Any ideas, any hints? Every help is highly appriciated.