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,cbb87dd49168c396 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-10-30 14:43:15 PST Newsgroups: comp.lang.ada Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!uunet!sea.uu.net!sac.uu.net!ash.uu.net!world!news From: Robert A Duff Subject: Re: Get_Line User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Sender: news@world.std.com (Mr Usenet Himself) Message-ID: Date: Wed, 30 Oct 2002 22:42:25 GMT Content-Type: text/plain; charset=us-ascii References: <3DBF3659.30709@acm.org> <4dRv9.46453$wm6.7691@nwrddc01.gnilink.net> <3DC0204E.4050203@acm.org> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Organization: The World Public Access UNIX, Brookline, MA Xref: archiver1.google.com comp.lang.ada:30241 Date: 2002-10-30T22:42:25+00:00 List-Id: Jeffrey Carter writes: > ...What you want to do is call Skip_Line if > Get_Line has not skipped the line terminator, which happens if the input > is >= Buffer'Length characters: > ... This group seems to get an endless series of posts indicating confusion about Get_Line. Jeffrey Carter and others kindly give helpful answers, which is good. But isn't the *real* problem that the design of Text_IO is broken? For example, why is there no Get_Line function: function Get_Line(...) return String; that returns the entire contents of the next line, no matter how long it is, and without fussing about with fixed-length (i.e. wrong length!) buffers? - Bob