i'm trying to write a porgram that reads records from a transaction file then validates them, writes them to a new file before sorting the records in order depending on the key field used.
problem is you need to use 3 structures for the 3 types of record, but how do you know which structure to read record into if you don't know which type of record it is and how do oyu know which type of record it is if you don't know which structure to read it inot.
all this is done from a line sequential file.
sorry if this is confused, but so am I.
problem is you need to use 3 structures for the 3 types of record, but how do you know which structure to read record into if you don't know which type of record it is and how do oyu know which type of record it is if you don't know which structure to read it inot.
all this is done from a line sequential file.
sorry if this is confused, but so am I.