Write program code to access individual fields of records under each of the following circumstances. For each case, state the assumptions you make concerning pointers, separator characters, and so on. Determine the type of information needed in the file header in order for your code to be general in each case.
a. Fixed-length records with unspanned blocking b. Fixed-length records with spanned blocking
b. Variable-length records with variable-length fields and spanned blocking
c. Variable-length records with repeating groups and spanned blocking
d. Variable-length records with optional fields and spanned blocking
e. Variable-length records that allow all three cases in parts c, d, and e