From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.5-pre1 Date: 21 Dec 92 18:20:00 GMT 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 Message-ID: <1992Dec21.182000.25255@aplcen.apl.jhu.edu> List-Id: 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