fscanf question

Daeshik Kim dskim at eng.umd.edu
Thu Dec 28 21:29:03 AEST 1989


In article <6983 at ohstpy.mps.ohio-state.edu> SMITHJ at ohstpy.mps.ohio-state.edu writes:
>
>#include <stdio>
	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 at cscwam.umd.edu (uunet!haven!cscwam.umd.edu!dkim)
		dskim at eng.umd.edu (uunet!haven!eng.umd.edu!dskim)
	WORK:	dkim at daffy.uu.net (uunet!daffy!dkim)



More information about the Comp.lang.c mailing list