Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!dsac.dla.mil!dsacg3.dsac.dla.mil!dsacg2.dsac.dla.mil!nzt2305 From: nzt2305@dsacg2.dsac.dla.mil (Michael L. Spivey) Newsgroups: comp.lang.c Subject: Reading data into a structure Message-ID: <3148@dsacg2.dsac.dla.mil> Date: 16 Apr 91 16:11:06 GMT Organization: Defense Logistics Agency Systems Automation Center, Columbus Lines: 12 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