11.07.2015 Views

Fortran 90 Handbook

Fortran 90 Handbook

Fortran 90 Handbook

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

1010.10 List-Directed FormattingList-directed formatting is one of the implicit formatting methods in <strong>Fortran</strong>.Conversion to and from characters in READ and WRITE statements does notuse an explicit format specification. The editing occurs based on the type of thelist item. Data is separated by commas or blanks. The input/output statementuses an asterisk (∗) instead of an explicit format specification.Example:READ (5, *)HOT, COLD, WARMRules and restrictions:On both input and output:1. A list-directed record consists of values and value separators.2. Values. The values allowed in a list-directed input record are:nullcr∗cr∗a null value, specified for example by two consecutivecommas (,,)a noncharacter literal constant (which must be unsigned)with no embedded blanks, a character literal constant, or anondelimited character string with no embedded blanks(see Section 10.10.1.1 for the detailed requirements fornondelimited character constants)r repetitions of the constant cr repetitions of the null valuewhere r is a nonzero digit string.Embedded blanks are not allowed within values except in a delimitedcharacter constant.3. Value Separators. The value separators allowed in a list-directed inputrecord are:• a comma, optionally preceded or followed by contiguous blanks• a slash, optionally preceded or followed by contiguous blanksInput and Output Editing 465Copyright © 1992 J. Adams, W. Brainerd, J. Martin, B. Smith, and J. Wagener

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!