www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/11/20/16:51:31

X-Authentication-Warning: raptor.csrv.uidaho.edu: roon8505 owned process doing -bs
Date: Mon, 20 Nov 2000 13:51:18 -0800 (PST)
From: David Roon <roon8505 AT uidaho DOT edu>
X-Sender: roon8505 AT raptor DOT csrv DOT uidaho DOT edu
To: djgpp AT delorie DOT com
Subject: And nary the twain shall meet...
Message-ID: <Pine.GHP.4.21.0011201344590.17687-100000@raptor.csrv.uidaho.edu>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com

Hullo, folks:

I have a text file- numbers, two decimal places, tab delimited. I'd like
to be able to import this info into a program, and assign each number as a
float. 

It seems like, using fin.getline, you can only pull the data in in char
format. Is there a way to take char format and convert it to float, or is
there some other import method I should be using?

This is the one hurdle keeping me from doing some useful stuff with a
couple of programs I've written. Help would be huge!

David R

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019