Writes a {key,val} pair where the value is of type character
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | key | |||
character(len=*), | intent(in) | :: | val | |||
integer, | intent(in) | :: | unit |
subroutine write_key_val_string(key, val, unit)
character(len=*), intent(in) :: key
character(len=*), intent(in) :: val
integer, intent(in) :: unit
write(unit,'(" ",A," = "," ",A)') format_key(key), '"'//trim(val)//'"'
end subroutine write_key_val_string