J
JoeT
Hello all...
I have to read in formatted input records that were generated on a
mainframe computer.
Each record is 80-characters long and divided up into 'fields' of some
specified length.
A synthetic record is shown below:
Problem I have is I have no idea how to write the format statement in
a sscanf to read this record (or those like it). I can't seem to
sscanf even the first 'field', since that has embedded blanks and %s
won't work and %36c didn't work. So...in short, I'm stumped.
Any assistance here would be appreciated.
Thanks,
Joe
I have to read in formatted input records that were generated on a
mainframe computer.
Each record is 80-characters long and divided up into 'fields' of some
specified length.
A synthetic record is shown below:
4 01
Problem I have is I have no idea how to write the format statement in
a sscanf to read this record (or those like it). I can't seem to
sscanf even the first 'field', since that has embedded blanks and %s
won't work and %36c didn't work. So...in short, I'm stumped.
Any assistance here would be appreciated.
Thanks,
Joe