C Library Functions - filedelete (3)
NAME
filedelete(3f) - [M_io] A simple close of an open file with STATUS=DELETE
(LICENSE:PD)
CONTENTS
Synopsis
Description
Option
Returns
Examples
Author
License
SYNOPSIS
function filedelete(lun) result(iostat)
integer,intent(in) :: lun
or
character(len=*),intent(in) :: filename
integer :: iostat
DESCRIPTION
A convenience command for deleting an OPEN(3f) file that leaves an
error message in the current journal file if active
OPTION
|
LUN |
unit number of open file to delete or filename.
|
|
RETURNS
|
IOSTAT |
status returned by CLOSE().
|
|
EXAMPLES
Sample program:
program demo_filedelete
use M_io, only : filedelete, fileopen
implicit none
integer :: lun
integer :: iostat
lun=fileopen(<input.txt)
iostat=filedelete(lun)
end program demo_filedelete
AUTHOR
John S. Urban
LICENSE
Public Domain
| Nemo Release 3.1 | filedelete (3) | August 28, 2026 |
Generated by manServer 1.08 from 169ed647-8b0c-4b33-857e-92595badef89 using man macros.