Reading data into a structure
Michael L. Spivey
nzt2305 at dsacg2.dsac.dla.mil
Wed Apr 17 02:11:06 AEST 1991
I read in my Turbo C manual that when reading data into a structure, fread and
fwrite are the best and easiest methods to use. I tried to incorporate them,
but to no avail. I currently use fscanf, but have trouble assigning a field
when the incoming value contains blank space. I was unable to find a way
around this.
I would appreciate if anyone can shed any light on how to use fread/fwrite when
reading data into a structure (with at least one field that is, say, 60
characters in length and contains white space).
Thanks,
Michael L. Spivey
More information about the Comp.lang.c
mailing list