I'm a new VB coder, converting from mainframe COBOL. I have to write a program that reads in mainframe files in one format
and write the data out in a new format.
In COBOL there are record layout structures. I've defined TYPEs for each record layout, incoming and outgoing. The records
are fixed in length but most have filler bytes of spaces filling out each record. The first character in each record indicates
which type of record it is (H for header, D for detail...).
Is there an easy way to read a record, determine which type it is and move the entire record into the corresponding TYPE
Has anyone out there ever written code like this?