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,4d6ffb27cf9c5e6 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-10-17 15:52:29 PST Newsgroups: comp.lang.ada Path: archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!212.177.105.133!news.mailgate.org!zur.uu.net!ash.uu.net!xyzzy!nntp From: Jeffrey Carter Subject: Re: How to read in very long strings. (was: HELP!!!!!!) X-Nntp-Posting-Host: e246420.msc.az.boeing.com Content-Type: text/plain; charset=us-ascii Message-ID: <3BCE03AD.A20F87BF@boeing.com> Sender: nntp@news.boeing.com (Boeing NNTP News Access) Content-Transfer-Encoding: 7bit Organization: The Boeing Company X-Accept-Language: en References: <9qk4lr$1tvj$1@newsreader1.mclink.it> <9qkbk7$mak$1@nh.pace.co.uk> Mime-Version: 1.0 Date: Wed, 17 Oct 2001 22:18:21 GMT X-Mailer: Mozilla 4.73 [en]C-CCK-MCD Boeing Kit (WinNT; U) Xref: archiver1.google.com comp.lang.ada:14848 Date: 2001-10-17T22:18:21+00:00 List-Id: Marin David Condic wrote: > > function Next_Line(File : in Ada.Text_IO.File_Type := > Ada.Text_Io.Standard_Input) return String is Ada.Text_IO.Current_Input would be a better default for this, so it can handle redirected input. This is the approach taken by PragmARC.Get_Line. -- Jeffrey Carter