home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / lang / ada / 3734 < prev    next >
Encoding:
Internet Message Format  |  1992-12-17  |  1.1 KB

  1. Path: sparky!uunet!seismo!hal!hathor!jeffe
  2. From: jeffe@hathor.CSS.GOV (Jeff Etrick)
  3. Newsgroups: comp.lang.ada
  4. Subject: I/O and the LRM
  5. Keywords: I/O NAME OPEN
  6. Message-ID: <206@hathor.CSS.GOV>
  7. Date: 17 Dec 92 13:25:00 GMT
  8. Organization: ENSCO, Inc., Melbourne, FL
  9. Lines: 24
  10.  
  11.  
  12.  
  13.  The following is taken from the LRM:
  14.  
  15. >>function NAME(FILE : in FILE_TYPE) return STRING;
  16.  
  17. >>Returns a string which uniquely identifies the external file currently
  18. >>associated with the given file (and may thus be used in an OPEN
  19. >>operation).  If an environment allows alternative specifications of the
  20. >>name (for example, abbreviations), the string returned by the function
  21. >>should correspond to a full specification of the name.
  22.  
  23. >>The exception STATUS_ERROR is raised if the given file is not open.
  24.  
  25.  
  26.  I have used the function successfully many times to get the external
  27. name of a currently opened file but what I don't understand is the
  28. comment about it being used in an open statement. Why would I want to use
  29. this statement in an open since the file must already be opened or
  30. STATUS_ERROR will be raised.
  31.  
  32. Thanks for the help,
  33.  
  34. Jeff
  35.