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=3.8 required=5.0 tests=BAYES_00,INVALID_MSGID, RATWARE_MS_HASH,RATWARE_OUTLOOK_NONAME autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,5997b4b7b514f689 X-Google-Attributes: gid103376,public From: "David C. Hoos, Sr." Subject: Re: Reading a line of arbitrary length Date: 1997/02/12 Message-ID: <01bc18d6$41e00680$188c71a5@dhoossr.iquest.com>#1/1 X-Deja-AN: 218234642 Distribution: world References: <5ds40o$rpo@fg70.rz.uni-karlsruhe.de> Content-Type: text/plain; charset=ISO-8859-1 Organization: Ada95 Press, Inc. Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 1997-02-12T00:00:00+00:00 List-Id: What you do is read into a temporary String of length larger than any you will encounter. Then you use the value of the actual parameter supplied for the formal parameter "Last" to take the appropriate slice from the temporary string. -- David C. Hoos, Sr., http://www.dbhwww.com http://www.ada95.com Thomas Koenig wrote in article <5ds40o$rpo@fg70.rz.uni-karlsruhe.de>... > What's the best way of reading a line of arbitrary length in Ada? > > Get_Line only works on Strings, not Unbounded_Strings. Would I need > to read in chunks of fixed length, then paste them together? > -- > 74 a3 53 cc 0b 19 >