Thread View: net.lang.ada
2 messages
2 total messages
Started by Geoff Leach
Wed, 01 Oct 1986 14:59
Surely one can 'open append' in Ada?
Author: Geoff Leach
Date: Wed, 01 Oct 1986 14:59
Date: Wed, 01 Oct 1986 14:59
13 lines
1010 bytes
1010 bytes
I'm a little embarassed to be asking such a question, but I
can't figure out how to open an existing file for text-io
in such a manner as to cause the output to be appended
to the file. Surely such an obvious function was not
omitted ...
--
Geoffrey Leach
Consulting Programmer
(415)325-8717
{ucbvax,pyramid,oliveb,idsvax,bene,nsc}!tolerant!leach
Net access through the courtesy of Tolerant Systems
Re: Surely one can 'open append' in Ada
Author: mbate
Date: Mon, 06 Oct 1986 17:19
Date: Mon, 06 Oct 1986 17:19
10 lines
1089 bytes
1089 bytes
There is no "official" (that is, LRM-specified) way to do this in
Ada. It is, however, one of those things that could legally be
included in an implementation in an implementation-dependent way.
Two ways come to mind:
1. A form string parameter.
2. Ada "standard output" is defined in the LRM as never
opened or closed explicitly by the programmer. It sounds
much the same as UNIX standard output and therefore could
be appended in a UNIX system via ">>".
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads