Append a varying string to the current record of the specified unit, terminating the record
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | unit | |||
character(len=*), | intent(in) | :: | string | |||
integer, | intent(out), | optional | :: | iostat |
subroutine put_line_unit_CH (unit, string, iostat) integer, intent(in) :: unit character(LEN=*), intent(in) :: string integer, intent(out), optional :: iostat if(PRESENT(iostat)) then write(unit, FMT='(A,/)', ADVANCE='NO', IOSTAT=iostat) string else write(unit, FMT='(A,/)', ADVANCE='NO') string endif ! Finish return end subroutine put_line_unit_CH