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,b2f463dd5856d07a X-Google-Attributes: gid103376,public From: nobody@REPLAY.COM (Anonymous) Subject: Re: Got me stumped any idea? Date: 1997/10/15 Message-ID: <199710151323.PAA24661@basement.replay.com>#1/1 X-Deja-AN: 281582533 References: <34437382.7CE3@top.monad.net> <343F77BF.18CA@unx1.shsu.edu> Organization: Replay and Company UnLimited Mail-To-News-Contact: postmaster@nym.alias.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/ Newsgroups: comp.lang.ada Date: 1997-10-15T00:00:00+00:00 List-Id: On Tue, 14 Oct 1997 09:28:34 -0400, Steve O'Neill wrote: [deleted stuff] > direction but your didn't go quite far enough. If you read up on > Get_Line you'll notice that (in the case of reading from a file) it > requires 3 parameters. The first is the file handle, the second is the > string into which the input is placed and the third is the number of > bytes actually read from the file for this 'line'. > > This should solve the problem at hand... > I hate to see misinformation such as this handed out. Get_Line has 3 parameters: File, type File_Type, the file object from which Get_Line reads Item, type String, the string into which Get_Line places characters Last, type Natural, which Get_Line sets to the index in Item into which the last character was placed. If no characters are placed into Item, Get_Line sets Last to Item'First-1. Since Item'First may be as large as Positive'Last, Last is clearly NOT the "number of bytes actually read from the file". Jeff Carter PGP:1024/440FBE21 My real e-mail address: ( carter @ innocon . com ) "We call your door-opening request a silly thing." Monty Python & the Holy Grail Posted with Spam Hater - see http://www.compulink.co.uk/~net-services/spam/