
Input/Output |
scanner encounters a dollarsign at the end of a format specification list, format con;. trol terminates without positioning the file to the beginning of the next record. The donar sign .edit descriptor has no effect on direct~accessfil¢s.
Example:
PAINT 25, PNAME
25FORMAT (A20, $)
6.4.4List·Directed Formatting
I
A
r*c
r*
The first form is equivalent to 'r' successive appearances of the constant 'c;' the se- cond is equivalent to 'r' null values. A null value can also be specified as no characters between value separators or no characters preceding the first value separator in a record. The null value is not produced by
Value separators can be a comma, slash, or one or more blanks between constants or following the last constant in a record. The slash separator is not produced on out- put. When encountered during
Any sequence of blanks is treated as a single blank except when it appears within a character constant. An
6.4.4.1 List-Directed Input
Input forms acceptable to format specifications for a given type are acceptable for
An input list item of type real is assumed to have no fractional part in its input form unless a decimal point appears within the field. An input list item of type logical must not include either slashes or commas in its input form.
An input list item of type character consists, in its input form, of a nonempty string of characters enclosed in apostrophes. Character constants can be continued from the end of one record to the beginning of the next. Though the end of a record nor- mally has the effect of a blank in
A null value has no effect on a corresponding input list item. The item retains its previous value or remains undefined, depending on its status before the null value was encountered.