I am trying to prove that I can read comma delimited files or traditional fixed length files with no record structure hard coded. What I am attempting to do is read either a comma delimited file or fixed length as a SEQWS type on the associated part and a serial record on the record part. I would like to read one byte at a time and build my string and then I will determine the field correlations based on soft coded customer specs.
As I said, I setup the record as a serial record and defined as 1 char thinking I could build an internal string up to the return character and then start over with my next record. However this is not working. It seems to be skipping a number of characters for on each record.
Is my logic TOTALLY flawed? Can someone give me an idea of what I am doing wrong? Thanks.