HP Fortran Programmer's Reference (September 2007)

I/O formatting
Edit descriptors
Chapter 9242
delimiting character, it must be of the other type; or you can escape the delimiter by giving
another of the same type. The width of the field is the number of characters enclosed by the
character string edit descriptors, including any blanks.
Table 9-2 provides examples of the character string edit descriptor on output. Note that
b
represents a blank.
Newline ($) edit descriptor
The newline edit descriptor is an HP extension that suppresses the generation of the newline
character (that is, the carriage-return/linefeed sequence) during formatted, sequential output.
By default, the cursor moves to a newline after each output statement. The newline edit
descriptor causes the cursor to remain on the same line, immediately to the right of the last
character output.
NOTE Nonadvancing I/O also suppresses the newline at the end of a record. Unlike
the newline ($) edit descriptor, it is a standard feature of Fortran 90, and can be
used on input and output. For more information, see “Nonadvancing I/O” on
page 216 and the ADVANCE= I/O specifier in “OPEN” on page 410.
Table 9-2 Character string edit descriptor output examples
Descriptor Field width Output
'Enter data:' 11 Enter data:
”David's turn” 12 David's turn
bbb
Spaces
bbb
12
bbb
Spaces
bbb
'That''ll do.' 11 That'll do.
”””That'll do!””” 13 ”That'll do!”
”””” 1
'”' 1