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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,3009af37fa605de6 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-11-21 01:03:44 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!129.240.148.23!uio.no!ntnu.no!not-for-mail From: Preben Randhol Newsgroups: comp.lang.ada Subject: Re: Ada communicating with other programs Date: Wed, 21 Nov 2001 09:03:43 +0000 (UTC) Organization: Norwegian university of science and technology Message-ID: References: <3tBK7.34749$RG1.17245515@news1.rdc1.sfba.home.com> NNTP-Posting-Host: kiuk0156.chembio.ntnu.no X-Trace: tyfon.itea.ntnu.no 1006333423 27850 129.241.83.82 (21 Nov 2001 09:03:43 GMT) X-Complaints-To: usenet@itea.ntnu.no NNTP-Posting-Date: Wed, 21 Nov 2001 09:03:43 +0000 (UTC) User-Agent: slrn/0.9.7.2 (Linux) Xref: archiver1.google.com comp.lang.ada:16773 Date: 2001-11-21T09:03:43+00:00 List-Id: On Tue, 20 Nov 2001 23:14:07 GMT, tmoran@acm.org wrote: >> > It is very easy to do it in Ada, but do expect a big number of lines. If >> Why not use the regex capabilities of GNAT? > The original post indicated the data was of the form: > Day,Time,Val1,Val2 > 01:23:2001,12:23:34,2.3445,233.34 > so Day and Time appear to be fixed fields and the other values could be > gotten using Text_IO.Get, with Last pointing just before the comma at > the end of a number. It really shouldn't require very many lines of > code, let alone PERL or regex, to parse that! Yes if the format is fixed it should not be a problem. Preben -- () Join the worldwide campaign to protect fundamental human rights. '||} {||' http://www.amnesty.org/