Re: fortran character set



Wade Ward wrote:

I've just started up with a new reference on page 1 and wanted to
check a couple of elementary assertions for correctness. The first
contention is that the members of list-directed IO can be delimited by
a comma or a slash during input, e.g.:
integer :: one, two, three
read *, one, two, three
, can receive input
6 enter 7 enter 8 enter or
6 / 7/ 8 enter or
6,7,8 enter ?

There is a trick that DEC used to use before list-directed input, and
is probably still supported. That is, a comma on input would terminate
the field early. One could input, for example, with 1 FORMAT(3I10)
and input either

1 2 3

or

1,2,3,

-- glen

.



Relevant Pages


Quantcast