174. List-directed READ will use several lines if necessary.#

topic: Input and Output

Note

This tip is a draft1.

A list-directed read will read data from as many lines as needed for the items, so a malformed data file may go undetected. To read items from a single line, first read the line with the “(a)” format into a string and then read items from the string.



1

From the perspective of FortranTip Browser, “draft” means that it hasn’t been edited for formatting, hasn’t had corresponding Fortran programs added, the text content hasn’t been enhanced, etc. Draft texts are extracted from the corresponding Tweet using the Twitter API.