comp.lang.ada
 help / color / mirror / Atom feed
* Is it possible to redirect text output to a String or Unbounded_String?
@ 2021-06-10  2:17 Jerry
  2021-06-10  6:50 ` Simon Wright
                   ` (6 more replies)
  0 siblings, 7 replies; 10+ messages in thread
From: Jerry @ 2021-06-10  2:17 UTC (permalink / raw)


Is it possible to redirect text output to a String or Unbounded_String rather than to a file?

I know there are versions of Put that take a string as a first argument but I don't want to have to write a special-purpose version of a stretch of code just for this purpose, since I want to keep the ability to also output text to a terminal.

I suppose I could redirect text to a file and then somehow read it back in as one string but that seems like a kludge.

Jerry

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2021-06-11 13:07 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-10  2:17 Is it possible to redirect text output to a String or Unbounded_String? Jerry
2021-06-10  6:50 ` Simon Wright
2021-06-10  7:00 ` Dmitry A. Kazakov
2021-06-11 13:07   ` Stephane Carrez
2021-06-10  8:31 ` ytomino
2021-06-10  9:09 ` Jeffrey R. Carter
2021-06-10 14:42 ` Stéphane Rivière
2021-06-11  6:51   ` Stéphane Rivière
2021-06-10 17:06 ` Marius Amado-Alves
2021-06-10 21:12 ` Shark8

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox