HP Fortran Programmer's Reference (September 2007)

I/O and file handling
File access methods
Chapter 8 211
Table 8-2 outlines the rules for the format of list-directed input data.
Output The format of list-directed output is determined by the type and value of the data in
the output list and by the value of the DELIM= specifier in the OPEN statement. For information
about the DELIM= specifier, see the description of the OPEN statement in Chapter 10, “HP
Fortran statements,” on page 267.
Table 8-2 Format of list-directed input data
Data type Input format rules
Integer Conforms to the same rules as integer constants.
Real and
double
precision
Any valid form for real and double precision. In
addition, the exponent can be indicated by a signed
integer constant (the Q, D, or E can be omitted), and
the decimal point can be omitted for those values
with no fractional part.
Complex and
double
complex
Two integer, real, or double precision constants,
separated by a comma and enclosed in parentheses.
The first number is the real part of the complex or
double complex number, and the second number is
the imaginary part. Each of the numbers can be
preceded or followed by blanks or the end of a record.
Logical Consists of a field of characters, the first nonblank
character of which must be a T for true or an F for
false (excluding the optional leading decimal point).
Integer constants may also appear.
Character Same form as character constants. Delimiting with
single or double quotation marks is needed only if
the constant contains any separators; delimiters are
discarded upon input. Character constants can be
continued from one record to the next. The
end-of-record does not cause a blank or any other
character to become part of the constant. If the
length of the character constant is greater than or
equal to the length,
len
, of the list item, only the
leftmost
len
characters of the constant are
transferred. If the length of the constant is less than
len
, the constant is left-justified in the list item with
trailing blanks.