225. Special meanings of * and / in list-directed input#
topic: Input and Output
Note
This tip is a draft1.
In list-directed input using the * format, n* means skip n items, ni means set n items to i, i,,j means set items 1 and 3 to i and j and keep item 2 unchanged, and / means to stop reading. The ni syntax also applies to DATA statements. Thx to urbanjost.
In list-directed input using the * format, n* means skip n items, n*i means set n items to i, i,,j means set items 1 and 3 to i and j and keep item 2 unchanged, and / means to stop reading. The n*i syntax also applies to DATA statements. Thx to urbanjost.pic.twitter.com/qBAZnKLAEA
— FortranTip (@fortrantip) May 26, 2022
- 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.