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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,865c3d125a8dbc3b X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!feeder1-2.proxad.net!proxad.net!feeder2-2.proxad.net!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Howto read line from a stream Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <83317a97-dae5-4c84-a1ac-88a87833cf3f@q14g2000vbn.googlegroups.com> <1a90e055-44a3-4d00-b4cd-64798c731a55@e24g2000vbe.googlegroups.com> <709e8a12-f967-43db-b76b-4852cf1db08b@v4g2000vba.googlegroups.com> Date: Wed, 3 Jun 2009 21:26:33 +0200 Message-ID: <196d124vj6gin.16zf5y40t9tr$.dlg@40tude.net> NNTP-Posting-Date: 03 Jun 2009 21:26:34 CEST NNTP-Posting-Host: a4aff8ae.newsspool4.arcor-online.net X-Trace: DXC=H;UO_]NcVi\f8j24CD<3lP4IUK On Wed, 3 Jun 2009 12:07:16 -0700 (PDT), sjw wrote: > But if you are dealing with character i/o I hardly think it matters! > Jeffrey's solution may take quite a bit of stack, if that's an issue. You terribly underestimate the huge "progress" of idiotic protocols, beginning with XML. The hardware protocol I am presently dealing with has configuration files of 50K source lines long. The files are *text*, "human-readable". Such a file merely describes how to communicate a device with a dozen of physical variables. Speed does matter! -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de