I need to process a file, and padd each record with a different number of spaces, depending on record type stored in the first 4 characters of each record, eg:
record type 1: padd rec with spaces to a total length of 36
record type 2: padd rec with spaces to a total length of 248
etc
Anyone has some sample code or a simple solution?
record type 1: padd rec with spaces to a total length of 36
record type 2: padd rec with spaces to a total length of 248
etc
Anyone has some sample code or a simple solution?