Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ncar!tank!mimsy!mojo!dskim From: dskim@eng.umd.edu (Daeshik Kim) Newsgroups: comp.lang.c Subject: Re: fscanf question Message-ID: <1989Dec28.102903.17906@eng.umd.edu> Date: 28 Dec 89 10:29:03 GMT References: <6983@ohstpy.mps.ohio-state.edu> Sender: news@eng.umd.edu (The News System) Reply-To: dskim@eng.umd.edu (Daeshik Kim) Organization: University of Maryland, College Park Lines: 22 In article <6983@ohstpy.mps.ohio-state.edu> SMITHJ@ohstpy.mps.ohio-state.edu writes: > >#include oops, "...h" > > char instr1[30], instr2[30]; > > fprintf(stream,"%-30s %-30s",outstr1,outstr2); > fclose(stream); Perhaps out of the topic; You may want to put 'EOF' before closing the "ASCII TEXT" file. > fscanf(stream,"%-30s %-30s",instr1,instr2); I do NOT think you want to use '-' here! -- Daeshik Kim H: (301) 445-0475/2147 O: (703) 689-7308 (M,W,F) SCHOOL: dkim@cscwam.umd.edu (uunet!haven!cscwam.umd.edu!dkim) dskim@eng.umd.edu (uunet!haven!eng.umd.edu!dskim) WORK: dkim@daffy.uu.net (uunet!daffy!dkim)