[7.1]
The SIZE=
specifier can be used in a READ
statement without ADVANCE='NO'
, that is,
in a READ
statement with no ADVANCE=
specifier, or one with an explicit ADVANCE='YES'
.
For example,
Character(65536) buf
Integer nc
Read(*,'(A)',Size=nc) buf
Print *,'The number of characters on that line was',nc
Note that SIZE=
is not permitted with list-directed or namelist formatting; that would be pointless,
as there are no edit descriptors with such formatting and thus no characters to be counted by SIZE=
.