157. DIRECT access file allows access to arbitrary record without looping over the previous records.#

topic: Input and Output

Note

This tip is a draft1.

A DIRECT access data file lets you read or write an arbitrary record without looping over the previous records, as needed with the usual SEQUENTIAL access. The record length RECL is given in the OPEN statement, and READ or WRITE need a record number REC.



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.