From: Barry Rodewald Newsgroups: comp.os.msdos.djgpp Subject: Re: A really simple program Date: Thu, 23 Oct 1997 22:03:54 +1300 Lines: 12 Message-ID: <344F12FA.CDA@hn.pl.net> References: NNTP-Posting-Host: bsr.hn.planet.gen.nz Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Miguel Murillo wrote: > fscanf(fd,"%s",&cad); You shouldn't need the address-of (&). Referring to an array name without an element number (ie: no square brackets) gives you the address of the beginning of the array. Remove it in both your fscanf functions should help. Hope this helps, Barry Rodewald.