comp.lang.ada
 help / color / mirror / Atom feed
* Reading text files with different data types
@ 2004-05-10  0:09 Isa
  2004-05-10  2:21 ` Jeff C,
  2004-05-10  5:41 ` Simon Wright
  0 siblings, 2 replies; 3+ messages in thread
From: Isa @ 2004-05-10  0:09 UTC (permalink / raw)


I'm trying to write a program to read points from a text file into an
array of records.
Each record corresponds to a line in the file, consisting of an
alphanumberic 6 character line, a space, a floating point number,
another space, then a final floating point number. (a name and 2
coordinates).

I'm completely at a loss as to how to read this in -- Ada.text_IO can
read it fine as a string - but I need to do calculation on the
floating point numbers(which could be with or without decimal points,
largest number to be stored  1000.00)

I don't think I can use streams - as it *must* be a text fine that is
read in, not a binary file.

Can anyone help me? I'm not asking for code - I just need a shove in
the right direction....

Thanks....any help will be VERY gladly appreciated



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-05-10  5:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-10  0:09 Reading text files with different data types Isa
2004-05-10  2:21 ` Jeff C,
2004-05-10  5:41 ` Simon Wright

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox