Utilities for handling input and output operations
Read a whole file into an array of characters
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(kind=tfc, len=*), | intent(in) | :: | filename |
File to read |
||
| character(kind=tfc, len=:), | intent(out), | allocatable | :: | string |
Array of characters representing the file |
|
| integer, | intent(out) | :: | stat |
Error status |
Read a whole line from a formatted unit into a deferred length character variable
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(in) | :: | io |
Formatted IO unit |
||
| character(kind=tfc, len=:), | intent(out), | allocatable | :: | string |
Line to read |
|
| integer, | intent(out) | :: | stat |
Status of operation |