From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,8321cba6ff61cddd,start X-Google-Attributes: gid103376,public Path: controlnews3.google.com!postnews1.google.com!not-for-mail From: yorkbiatch@hotmail.com (Isa) Newsgroups: comp.lang.ada Subject: Reading text files with different data types Date: 9 May 2004 17:09:03 -0700 Organization: http://groups.google.com Message-ID: <6e837805.0405091609.bb1a850@posting.google.com> NNTP-Posting-Host: 144.32.128.68 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1084147743 31304 127.0.0.1 (10 May 2004 00:09:03 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 10 May 2004 00:09:03 +0000 (UTC) Xref: controlnews3.google.com comp.lang.ada:400 Date: 2004-05-09T17:09:03-07:00 List-Id: 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