Checks whether a file exists.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | filename |
File name |
impure function sysutils_obj_FileExists(filename) result(val) !> Checks whether a file exists. implicit none character(len=*), intent(in) :: filename !! File name ! Check file exists logical :: val inquire(file=trim(adjustl(filename)), exist=val) return end function sysutils_obj_FileExists