156. How to append to a file or delete it#

topic: Input and Output

Note

This tip is a draft1.

In an OPEN statement with ACTION=”write”, use POSITION=”append” to append data to a file rather than overwriting it. To delete a file that is connected to a unit, CLOSE that unit with STATUS=”delete”.



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.