home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.ada
- Path: sparky!uunet!paladin.american.edu!darwin.sura.net!aplcen.apl.jhu.edu!ddsdx2.jhuapl.edu!dlc
- From: dlc@ddsdx2.jhuapl.edu (Dave Collard x7468)
- Subject: Re: I/O and the LRM
- Message-ID: <1992Dec21.182000.25255@aplcen.apl.jhu.edu>
- Keywords: I/O NAME OPEN
- Sender: news@aplcen.apl.jhu.edu (USENET News System)
- Organization: Johns Hopkins University
- References: <206@hathor.CSS.GOV> <1992Dec21.163435.22675@software.org>
- Distribution: usa
- Date: Mon, 21 Dec 92 18:20:00 GMT
- Lines: 38
-
- In <1992Dec21.163435.22675@software.org> smithd@software.org (Doug Smith) writes:
-
- >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
-