Re: fortran character set
- From: glen herrmannsfeldt <gah@xxxxxxxxxxxxxxxx>
- Date: Mon, 27 Aug 2007 15:06:45 -0800
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
.
- Follow-Ups:
- Re: fortran character set
- From: James Giles
- Re: fortran character set
- From: James Giles
- Re: fortran character set
- From: Steve Lionel
- Re: fortran character set
- From: Terence
- Re: fortran character set
- References:
- fortran character set
- From: Wade Ward
- fortran character set
- Prev by Date: Re: Is there a way like this in Fortran?
- Next by Date: Re: fortran character set
- Previous by thread: Re: fortran character set
- Next by thread: Re: fortran character set
- Index(es):
Relevant Pages
|