Write a string to file. file : input integer : Fortran output unit identifier string : input character string : Character string to be used
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | file | |||
character(len=*), | intent(in) | :: | string |
subroutine write(file, string)
!! Write a string to file.
!! file : input integer : Fortran output unit identifier
!! string : input character string : Character string to be used
implicit none
! Arguments
integer, intent(in) :: file
character(len=*), intent(in) :: string
write(file,*) trim(string)
end subroutine write