From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.5-pre1 Path: eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: "Jeffrey R. Carter" Newsgroups: comp.lang.ada Subject: Re: Is it possible to redirect text output to a String or Unbounded_String? Date: Thu, 10 Jun 2021 11:09:17 +0200 Organization: Also freenews.netfront.net; news.tornevall.net; news.eternal-september.org Message-ID: References: <331aa8fb-271a-4a3a-b95e-d10733cbc404n@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Thu, 10 Jun 2021 09:09:19 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="f8ff0b9a4e0de5633dd9162b23f2dae7"; logging-data="28584"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/Pcsmo+UbzyWwG6Mz01t1hH0TF2QyB0es=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 Cancel-Lock: sha1:IyA832kJUnOelhyhp23UDAFcmNY= In-Reply-To: <331aa8fb-271a-4a3a-b95e-d10733cbc404n@googlegroups.com> Content-Language: en-US Xref: reader02.eternal-september.org comp.lang.ada:62160 List-Id: On 6/10/21 4:17 AM, Jerry wrote: > Is it possible to redirect text output to a String or Unbounded_String rather than to a file? This is an abstraction that does not exist in the language, presumably because it is not commonly needed. But you can easily implement this abstraction in Ada if you need it. -- Jeff Carter "I'll get broads up here like you wouldn't believe. Swingers. Freaks. Nymphomaniacs. Dental hygienists." Play It Again, Sam 125