153. Number of files open simultaneously is limited, so they should be closed when possible.#
topic: Input and Output
Note
This tip is a draft1.
The number of files that can be connected simultaneously differs by compiler and operating system, so files that will no longer be used should be closed, especially when opened in a loop. On Unix ulimit -n gives the maximum # of open file descriptors.
The number of files that can be connected simultaneously differs by compiler and operating system, so files that will no longer be used should be closed, especially when opened in a loop. On Unix ulimit -n gives the maximum # of open file descriptors.pic.twitter.com/sSJe11cw8X
— FortranTip (@fortrantip) March 14, 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.