comp.lang.ada
 help / color / mirror / Atom feed
From: paladin.american.edu!darwin.sura.net!aplcen.apl.jhu.edu!ddsdx2.jhuapl.edu !dlc@gatech.edu  (Dave Collard x7468)
Subject: Re: I/O and the LRM
Date: 21 Dec 92 18:20:00 GMT	[thread overview]
Message-ID: <1992Dec21.182000.25255@aplcen.apl.jhu.edu> (raw)

In <1992Dec21.163435.22675@software.org> smithd@software.org (Doug Smith) write
s:

>In article <206@hathor.CSS.GOV> jeffe@hathor.CSS.GOV (Jeff Etrick) writes:
>> 
>> 
>>  The following is taken from the LRM:
>> 
>> >>function NAME(FILE : in FILE_TYPE) return STRING;
>> 
>> >>Returns a string which uniquely identifies the external file currently
>> >>associated with the given file (and may thus be used in an OPEN
>> >>operation).  If an environment allows alternative specifications of the
>> >>name (for example, abbreviations), the string returned by the function
>> >>should correspond to a full specification of the name.
>> 
>> >>The exception STATUS_ERROR is raised if the given file is not open.
>> 
>> 
>>  I have used the function successfully many times to get the external
>> name of a currently opened file but what I don't understand is the
>> comment about it being used in an open statement. Why would I want to use
>> this statement in an open since the file must already be opened or
>> STATUS_ERROR will be raised.
>> 
>> Thanks for the help,
>> 
>> Jeff

A file can be opened more than once.

For example, to write sequential data to standard out:

  CHSEQ.Create(SysOutfile, CHSEQ.Out_File, Text_IO.Name(Text_IO.Standard_Output
));

A file can be opened with shared access, at least on some systems, by
using the write FORM parameter.

--Thor

             reply	other threads:[~1992-12-21 18:20 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1992-12-21 18:20 paladin.american.edu!darwin.sura.net!aplcen.apl.jhu.edu!ddsdx2.jhuapl.edu [this message]
  -- strict thread matches above, loose matches on Subject: below --
1992-12-22 15:09 I/O and the LRM David Emery
1992-12-21 16:34 enterpoop.mit.edu!snorkelwacker.mit.edu!stanford.edu!agate!spool.mu.edu!c
1992-12-17 16:30 Robert I. Eachus
1992-12-17 13:25 Jeff Etrick
replies disabled

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