home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cs.utexas.edu!sun-barr!ames!uakari.primate.wisc.edu!caen!uvaarpa!murdoch!kelvin.seas.Virginia.EDU!wsh8z
- From: wsh8z@kelvin.seas.Virginia.EDU (William Scott Heyman)
- Newsgroups: comp.lang.c
- Subject: Another scanf question
- Message-ID: <1992Aug13.180241.1810@murdoch.acc.Virginia.EDU>
- Date: 13 Aug 92 18:02:41 GMT
- Sender: usenet@murdoch.acc.Virginia.EDU
- Organization: University of Virginia
- Lines: 15
-
- I have a list of numbers in a file writen using
- printf("%f %f\n",a,b);
- many times.
- I want to read this list a line at a time using scanf:
- scanf("%f %f\n",&a,&b);
- The result is a = b = 0.0 which isn't correct.
- I also tried fscanf(stdin,"%f %f\n",&a &b);
- to no avail...
-
- Could someone suggest a way to read in this list of numbers?
- Thanks
-
- Will Heyman
- UVA Applied Math
- wsh8z@virginia.edu
-