Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site dciem.UUCP Path: utzoo!dciem!ntt From: ntt@dciem.UUCP (Mark Brader) Newsgroups: net.lang.c Subject: Re: A Question about nesting structures Message-ID: <843@dciem.UUCP> Date: Wed, 11-Apr-84 12:32:03 EST Article-I.D.: dciem.843 Posted: Wed Apr 11 12:32:03 1984 Date-Received: Wed, 11-Apr-84 14:18:14 EST References: <3021@fortune.UUCP> Organization: NTT Systems Inc., Toronto, Canada Lines: 13 Mr. Crane, C is not COBOL, and structs are not "group items". You know that this will not work: struct x { char a; int b; } y; read (0, &y, 3); What you are supposed to do is read each item individually. I don't think that it should make any difference that the items within the group all turn out to be chars in the end. I think you should use scanf instead of trying to read everything at once. Mark Brader