isopen |
Table of contents
ProcedureISOPEN ( Is a file currently open? ) LOGICAL FUNCTION ISOPEN ( FILE ) AbstractDetermine whether a named file is currently open. Required_ReadingNone. KeywordsFILES DeclarationsIMPLICIT NONE CHARACTER*(*) FILE Brief_I/OVARIABLE I/O DESCRIPTION -------- --- -------------------------------------------------- FILE I Name of the file in question. The function returns the value .TRUE. if the file is open, .FALSE. otherwise. Detailed_InputFILE is the name of the file in question. Detailed_OutputThe function returns the value .TRUE. if the file is open, .FALSE. otherwise. ParametersNone. Exceptions1) If the filename is blank, the error SPICE(BLANKFILENAME) is signaled. 2) If an error occurs during the execution of the Fortran INQUIRE statement, the error SPICE(INQUIREFAILED) is signaled. FilesNone. ParticularsUse the Fortran INQUIRE statement to determine the open status of FILE. ExamplesThe following code fragment illustrates the use of ISOPEN. IF ( .NOT. ISOPEN ( FILE ) ) THEN Open the file here ELSE ERROR = 'Input file is already open.' END IF RestrictionsNone. Literature_ReferencesNone. Author_and_InstitutionJ. Diaz del Rio (ODC Space) K.R. Gehringer (JPL) VersionSPICELIB Version 1.2.0, 12-AUG-2021 (JDR) Added IMPLICIT NONE statement. Edited the header to comply with NAIF standard. SPICELIB Version 1.1.0, 29-FEB-1996 (KRG) Added a local logical variable that is used as temporary storage for the results from the INQUIRE statement rather than using the function name. This solved a problem on the macintosh. SPICELIB Version 1.0.0, 05-OCT-1994 (KRG) |
Fri Dec 31 18:36:28 2021