read_file Subroutine

public subroutine read_file(filename, str)

Arguments

Type IntentOptional AttributesName
character(len=*), intent(in) :: filename
character(len=:), intent(out), allocatable:: str

Description

Reads the contents of the file into the allocatable string str. If there are any problems, str will be returned unallocated.


Variables

TypeVisibility AttributesNameInitial
integer, public :: iunit
integer, public :: istat
integer, public :: filesize