comp.lang.ada
 help / color / mirror / Atom feed
* Text_Io Questions
@ 1991-01-26 18:53 Tom McClory
  1991-01-29  4:02 ` Michael Feldman
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Tom McClory @ 1991-01-26 18:53 UTC (permalink / raw)


A few novice questions on using Text_Io ...

I've checked a couple of  "intro" text books on Ada, and the LRM, but I 
haven't found a solution to either of these (trivial?) problems.  I 
would welcome suggestion from any gurus in netland.  If there is 
sufficient interest, I'll post a summary.

1) How to open a text file to append to an existing text file?

2) Is there some way to write to either Standard_Output or to a file?
The Text_Io.File_Type is limited private, so the following doesn't work:

    The_File : File_Type;
    The_File := Standard_Output;
    ...
    Put(The_File, "hello world");

I then tried the following but the exception "Name_Error" was raised:

    Open( File => The_File, Mode => In_Out, Name => Name(Standard_Output));

I also tried Create, but this created a new file in my directory 
named "stdout".

Thanks,

Tom McClory
tmcclory@cs.wright.edu
Wright State Univ.
Dayton, OH.

^ permalink raw reply	[flat|nested] 5+ messages in thread
[parent not found: <185319@<1991Jan26>]

end of thread, other threads:[~1991-01-30  0:05 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1991-01-26 18:53 Text_Io Questions Tom McClory
1991-01-29  4:02 ` Michael Feldman
1991-01-30  0:04 ` Robert I. Eachus
1991-01-30  0:05 ` Robert I. Eachus
     [not found] <185319@<1991Jan26>
1991-01-29 17:58 ` stt

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