Read a whole line from a formatted unit into a string variable
Read a whole line from a formatted unit into a deferred length character variable
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | unit | Formatted IO unit |
||
character(len=:), | intent(out), | allocatable | :: | line | Line to read |
|
integer, | intent(out), | optional | :: | iostat | Status of operation |
|
character(len=:), | optional | allocatable | :: | iomsg | Error message |
Read a whole line from a formatted unit into a string variable
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | unit | Formatted IO unit |
||
type(string_type), | intent(out) | :: | line | Line to read |
||
integer, | intent(out), | optional | :: | iostat | Status of operation |
|
character(len=:), | optional | allocatable | :: | iomsg | Error message |
Read a whole line from the standard input into a deferred length character variable
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=:), | intent(out), | allocatable | :: | line | Line to read |
|
integer, | intent(out), | optional | :: | iostat | Status of operation |
|
character(len=:), | optional | allocatable | :: | iomsg | Error message |
Read a whole line from the standard input into a string variable
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(string_type), | intent(out) | :: | line | Line to read |
||
integer, | intent(out), | optional | :: | iostat | Status of operation |
|
character(len=:), | optional | allocatable | :: | iomsg | Error message |