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.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM 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!postnews.google.com!e24g2000vbe.googlegroups.com!not-for-mail From: =?ISO-8859-2?Q?Tomek_Wa=B3kuski?= Newsgroups: comp.lang.ada Subject: Re: Howto read line from a stream Date: Sun, 31 May 2009 04:29:33 -0700 (PDT) Organization: http://groups.google.com Message-ID: <1a90e055-44a3-4d00-b4cd-64798c731a55@e24g2000vbe.googlegroups.com> References: <83317a97-dae5-4c84-a1ac-88a87833cf3f@q14g2000vbn.googlegroups.com> NNTP-Posting-Host: 83.5.175.164 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1243769374 6159 127.0.0.1 (31 May 2009 11:29:34 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sun, 31 May 2009 11:29:34 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: e24g2000vbe.googlegroups.com; posting-host=83.5.175.164; posting-account=Ar5oKAoAAAD4cyp5eTv5CtR88dGtUxxC User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; pl-PL; rv:1.9.0.10) Gecko/2009042708 Fedora/3.0.10-1.fc10 Firefox/3.0.10,gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:6131 Date: 2009-05-31T04:29:33-07:00 List-Id: I have done so far: function Read_Line (Channel : in Stream_Access) return String is Buffer : String (1 .. 1); Result : Unbounded_String; begin loop String'Read (Channel, Buffer); Append (Result, Buffer); exit when Buffer (1) = ASCII.LF; end loop; return To_String(Result); end Read_Line; I know, this is completely NOT smart solution.