filedelete(3f) - [M_io] A simple close of an open file with STATUS=DELETE (LICENSE:PD)
Synopsis
Description
Option
Returns
Example
Author
License
function filedelete(lun) result(ios)
integer,intent(in) :: lun integer :: ios
A convenience command for deleting an OPEN(3f) file that leaves an error message in the current journal file if active.
LUN unit number of open file to delete
IOS status returned by CLOSE().
Sample program:
program demo_filedelete use M_io, only : filedelete, fileopen implicit none integer :: lun integer :: ios lun=fileopen(<input.txt) ios=filedelete(lun) end program demo_filedelete
John S. Urban
Public Domain
filedelete (3) | March 11, 2021 |