HP Fortran Programmer's Reference (September 2007)

I/O and file handling
File access methods
Chapter 8212
Table 8-3 summarizes the rules governing the display of each data type.
With the exception of character values, all output values are preceded by exactly one blank. A
blank character is also inserted at the start of each record to provide ASA carriage control if
the file is to be printed; see “ASA carriage control” on page 227 for a description of this. For
example, the following statement:
PRINT *, 'Hello, world!'
outputs the line (where
b
indicates a blank):
b
Hello,
b
world!
If the length of the values of the output items is greater than 79 characters, the current record
is written and a new record started.
Slashes, as value separators, and null values are not output by list-directed WRITE
statements.
Table 8-3 Format of list-directed output data
Data
type
Output format rules
Integer Output as an integer constant.
Real and
Double
Precision
Output with or without an exponent, depending on the
magnitude. Also, output with field width and decimal
places appropriate to maintain the precision of the data
as closely as possible.
Complex Output as two numeric values separated by commas and
enclosed in parentheses.
Logical If the value of the list element is .TRUE., then T is output.
Otherwise, F is output.
Character Output using the A
len
format descriptor, where
len
is
the length of the character expression (adjusted for
doubling). If DELIM='NONE' (the default), no single (') or
double (”) quotation marks are doubled, and the records
may not be suitable list-directed input. If the value
specified by DELIM= is not 'NONE', only the specified
delimiter is doubled. Character strings are output
without delimiters, making them also unsuitable for
list-directed input.