Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!mailrus!usenet.ins.cwru.edu!eagle!news From: vvcns@mars.lerc.nasa.gov (Allen Holtz) Newsgroups: comp.lang.c Subject: Reading floating point numbers Message-ID: <1990Sep21.160343.18870@eagle.lerc.nasa.gov> Date: 21 Sep 90 16:03:43 GMT Reply-To: vvcns@mars.lerc.nasa.gov Organization: NASA Lewis Research Center Lines: 21 News-Software: VAX/VMS VNEWS 1.3-4 I am trying to read floating point numbers from a file using the following: fscanf(pointer,"%f",&arg); The correct data is not being read. Instead, totally random numbers are read in. Is there a certain way to read floating point numbers from a file. All suggestions are welcome. Thanks in advance, Allen -------------------------------------------------------------------------------- Allen Holtz -------------------------------------------------------------------------------- Imagination is more important than knowledge. - Albert Einstein --------------------------------------------------------------------------------