comp.lang.ada
 help / color / mirror / Atom feed
From: tmcclory@valhalla.cs.wright.edu (Tom McClory)
Subject: Text_Io Questions
Date: 26 Jan 91 18:53:19 GMT	[thread overview]
Message-ID: <1991Jan26.185319.15676@cs.wright.edu> (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.

             reply	other threads:[~1991-01-26 18:53 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1991-01-26 18:53 Tom McClory [this message]
1991-01-29  4:02 ` Text_Io Questions 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
replies disabled

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