091. Use iostat and iomsg to handle READ errors#
topic: Input and Output
Note
This tip is a draft1.
The Fortran 2003 module iso_fortran_env has constants
iostat_eor – end of record iostat_end – end of file
to which the iostat of a READ statement will be set if that error occurs. READ also has an iomsg specifier returning a text error message.
The Fortran 2003 module iso_fortran_env has constants
— FortranTip (@fortrantip) January 16, 2022
iostat_eor -- end of record
iostat_end -- end of file
to which the iostat of a READ statement will be set if that error occurs. READ also has an iomsg specifier returning a text error message.pic.twitter.com/Rm6DmsKPP9
- 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.