new_line(c)
returns the new-line character.
Fortran 2003 and later
result = new_line(c)
c
- The argument shall be a scalar or array of the type character
.Returns a character
scalar of length one with the new-line character of the same kind as parameter c
.
program newline
implicit none
write(*,'(A)') 'This is record 1.'//NEW_LINE('A')//'This is record 2.'
end program newline