Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!silver!mitchemt From: mitchemt@silver.ucs.indiana.edu Newsgroups: comp.lang.c Subject: fread help Message-ID: <9600005@silver> Date: 17 Feb 90 03:17:00 GMT Organization: Indiana University CSCI, Bloomington Lines: 18 Nf-ID: #N:silver:9600005:000:556 Nf-From: silver.ucs.indiana.edu!mitchemt Feb 16 22:17:00 1990 I am trying to get fread to work with a structure I have defined. It seems that turbo c won't read correctly. The structure is defines as follows: struct e { char indicator; char *description; char *path; }; typedef struct e ENTRY; When I try to fread, I get the correct value for 'indicator', but junk for the other two. Is my code wrong or is the file wrong. If it is the file could someone please send me and example of one that would work with the code I have written. Terrence Mitchem ps: any help is GREATLY appreciated.