The NEW_LINE intrinsic returns a new line character.
Inquiry function
Character scalar of length one.
The result is the same as ACHAR(10).
The following example uses the NEW_LINE intrinsic in list-directed output:
character(1) c print *, 'The first sentence.', NEW_LINE(c), 'The second sentence.'
Expected Output:
The first sentence. The second sentence.
The following example passes a character literal constant to the NEW_LINE intrinsic:
character(100) line line = 'IBM' // NEW_LINE('Fortran') // 'XL Fortran Compiler'
Expected Output:
IBM XL Fortran Compiler