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-20 15:14:08 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newshub2.rdc1.sfba.home.com!news.home.com!news1.rdc1.sfba.home.com.POSTED!not-for-mail From: tmoran@acm.org Newsgroups: comp.lang.ada Subject: Re: Ada communicating with other programs References: X-Newsreader: Tom's custom newsreader Message-ID: <3tBK7.34749$RG1.17245515@news1.rdc1.sfba.home.com> Date: Tue, 20 Nov 2001 23:14:07 GMT NNTP-Posting-Host: 24.7.82.199 X-Complaints-To: abuse@home.net X-Trace: news1.rdc1.sfba.home.com 1006298047 24.7.82.199 (Tue, 20 Nov 2001 15:14:07 PST) NNTP-Posting-Date: Tue, 20 Nov 2001 15:14:07 PST Organization: Excite@Home - The Leader in Broadband http://home.com/faster Xref: archiver1.google.com comp.lang.ada:16760 Date: 2001-11-20T23:14:07+00:00 List-Id: > > 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!