delfil |
Table of contents
ProcedureDELFIL ( Delete a file ) SUBROUTINE DELFIL ( FILNAM ) AbstractDelete a file. Required_ReadingNone. KeywordsUTILITY DeclarationsCHARACTER*(*) FILNAM Brief_I/OVARIABLE I/O DESCRIPTION -------- --- -------------------------------------------------- FILNAM I The name of a file to be deleted. Detailed_InputFILNAM is the name of a file that is to be deleted. Upon successful completion of this routine this file will no longer exist. The file to be deleted must be closed when this routine is called. Detailed_OutputNone. ParametersNone. Exceptions1) If the file name is blank, the error SPICE(BLANKFILENAME) is signaled. 2) If the inquire on the filename specified by FILNAM fails for some reason, the error SPICE(INQUIREERROR) is signaled. 3) If the file specified by FILNAM is already open, the error SPICE(FILECURRENTLYOPEN) is signaled. 4) If the file specified by FILNAM does not exist, the error SPICE(NOSUCHFILE) is signaled. 5) If the attempt to open the file specified by FILNAM fails, the error SPICE(FILEOPENFAILED) is signaled. 6) If the attempt to close the file with STATUS='DELETE' fails, the error SPICE(FILEDELETEFAILED) is signaled. FilesThe file specified by FILNAM is opened and then closed by this routine with STATUS = 'DELETE' to delete it. The file must be closed for this routine to delete it. ParticularsThis subroutine is a support utility that deletes a file. ExamplesSuppose you wish to delete a file named 'delete.me' in the current directory. The code fragment below would accomplish this. FILE = 'delete.me' CALL DELFIL ( FILE ) Restrictions1) The file to be deleted must be closed when this routine is invoked. Literature_ReferencesNone. Author_and_InstitutionJ. Diaz del Rio (ODC Space) K.R. Gehringer (JPL) VersionSPICELIB Version 1.0.1, 02-JUN-2021 (JDR) Edited the header to comply with NAIF standard. SPICELIB Version 1.0.0, 20-DEC-1995 (KRG) |
Fri Dec 31 18:36:12 2021