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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,ab6043d552b0b9c7 X-Google-Attributes: gid103376,public From: nobody@REPLAY.COM (Anonymous) Subject: Re: Assistance with text i/o Date: 1998/04/14 Message-ID: <199804141400.QAA28647@basement.replay.com>#1/1 X-Deja-AN: 343937037 Content-Transfer-Encoding: 7bit References: <35193b3d.1154213@SantaClara01.news.InterNex.Net> X-001: Replay may or may not approve of the content of this posting X-002: Report misuse of this automated service to X-URL: http://www.replay.com/remailer/ Content-Type: text/plain; charset=us-ascii Organization: Replay Associates, L.L.P. Mail-To-News-Contact: postmaster@nym.alias.net Newsgroups: comp.lang.ada Date: 1998-04-14T00:00:00+00:00 List-Id: <6f8sqn$tuu$1@Urvile.MSUS.EDU> On Mon, 13 Apr 1998 16:21:17 GMT, tmoran@bix.com (Tom Moran) wrote: > Ada.Text_IO.Get_Line will read the entire line into a String, then > parse (perhaps using the Ada 95 Strings packages) the line into two > strings, one for each "word". > This is incorrect. It is a common misconception that Ada.Text_Io.Get_Line "will read [an] entire line". Actually, Get_Line reads characters into successive positions in Item (: out String) until either Item is filled with characters or Get_Line encounters a line terminator, in which case it skips the line terminator. If Get_Line fills Item before it encounters a line terminator, it does not read an entire line, nor does it skip a line terminator. Do not rely on Ada.Text_Io.Get_Line to read an entire line. Jeff Carter PGP:1024/440FBE21 My real e-mail address: ( carter @ innocon . com ) "Go and boil your bottom." Monty Python & the Holy Grail Posted with Spam Hater - see http://www.compulink.co.uk/~net-services/spam/