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, MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,d93b7c6dd17cbc81 X-Google-Attributes: gid103376,public From: jrcarter001@my-dejanews.com Subject: Re: Strings and reading from a file Date: 1999/05/13 Message-ID: <7hevh1$g08$1@nnrp1.deja.com>#1/1 X-Deja-AN: 477455500 References: <7han2q$jkp$1@news.iinet.net.au> <7hbnnl$rca$1@nnrp1.deja.com> <7hc358$ha5$1@news.iinet.net.au> <37399913.BD928DD1@pwfl.com> X-Http-Proxy: 1.0 x28.deja.com:80 (Squid/1.1.22) for client 206.239.237.114 Organization: Deja.com - Share what you know. Learn what you don't. X-Article-Creation-Date: Thu May 13 16:44:18 1999 GMT Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.51 [en] (Win95; U) Date: 1999-05-13T00:00:00+00:00 List-Id: In article <37399913.BD928DD1@pwfl.com>, diespammer@pwfl.com wrote: ... > function Next_Line return String is > Str : String (1..256) ; > Len : Natural ; > begin > Get_Line ( > Item => Str, > Last => Len) ; > return Str (1..Len) ; > end Next_Line ; ... Make the function recursive, and it can return a string of any length, eliminating that nagging worry about strings that are longer than whatever magic number you used in the function. --== Sent via Deja.com http://www.deja.com/ ==-- ---Share what you know. Learn what you don't.---