comp.lang.ada
 help / color / mirror / Atom feed
* Getting Information already displayed on terminal window
@ 2002-04-17 23:09 Fraz
  2002-04-18  8:51 ` Peter Hermann
  2002-04-19  7:06 ` Alfred Hilscher
  0 siblings, 2 replies; 7+ messages in thread
From: Fraz @ 2002-04-17 23:09 UTC (permalink / raw)


I notice that Ada Gide has an option which redirects the output to a file if
desired.  How do i build this into my program?

I am executing an external program and want to read in the result of this
from the output screen - can i??

Cheers

Fraz





^ permalink raw reply	[flat|nested] 7+ messages in thread
* Re: Getting Information already displayed on terminal window
@ 2002-04-18 22:04 Gautier Write-only-address
  0 siblings, 0 replies; 7+ messages in thread
From: Gautier Write-only-address @ 2002-04-18 22:04 UTC (permalink / raw)


"Peter Hermann":

> > In AdaGIDE, the "standard output"(!) can be redirected to a file.
> > you set the "run options" to one the following choices:
> >     -- output to screen
> >     -- output to file
> >     -- both

"Fraz":
>yeah i know, but there must be a way to build this into the
>program so that if i run the exe outside of ada gide it creates
>the file as well??

To obtain simultaneously the output on "standard output" and
a file the best way is to use Dual_IO whose interface mimicks
[Ada.]Text_IO (83 and 95 versions) but has the desired effect.
I use it e.g. on the same program under OpenVMS and Windows.
See paqs.zip @

  http://www.mysunrise.ch/users/gdm/gsoft.htm

HTH
____________________________________________________________
Gautier  --  http://www.mysunrise.ch/users/gdm/index.htm#Ada

NB: For a direct answer, address on the Web site!



_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.




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

end of thread, other threads:[~2002-04-19  7:06 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-17 23:09 Getting Information already displayed on terminal window Fraz
2002-04-18  8:51 ` Peter Hermann
2002-04-18 11:32   ` Fraz
2002-04-18 13:58     ` Mark Johnson
2002-04-18 19:07   ` Stephen Leake
2002-04-19  7:06 ` Alfred Hilscher
  -- strict thread matches above, loose matches on Subject: below --
2002-04-18 22:04 Gautier Write-only-address

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