public subroutine read_file(filename, str)
Arguments
| Type |
Intent | Optional |
Attributes | | Name | |
| 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.
Warning
Will this routine work if the file contains unicode characters??
Variables
| Type | Visibility |
Attributes | | Name | | Initial | |
| integer, |
public |
| :: |
iunit | | | |
| integer, |
public |
| :: |
istat | | | |
| integer, |
public |
| :: |
filesize | | | |