Read a list with undefined length
- From: Allamarein <matteo.diplomacy@xxxxxxxxx>
- Date: Fri, 25 Mar 2011 12:25:48 -0700 (PDT)
When I use the READ statement, I use data file of this kind:
npts
25
x y
2 5
7 9
10 13
.....
In other words in the file the number of records is explicit (an
INTEGER variable).
I would not specify the number of records.
I am reading the CVF guide and I found this:
"err, end, eor
Are branch specifiers if an error (ERR=label), end-of-file
(END=label), or end-of-record (EOR=label) condition occurs.
EOR can only be specified for nonadvancing READ statements."
Could I use this optional input for my purpose?
I have just posed this question, but I need a more complete answer.
Thanks
.
- Follow-Ups:
- Re: Read a list with undefined length
- From: Eric
- Re: Read a list with undefined length
- From: robin
- Re: Read a list with undefined length
- From: Arjan
- Re: Read a list with undefined length
- From: glen herrmannsfeldt
- Re: Read a list with undefined length
- From: Dick Hendrickson
- Re: Read a list with undefined length
- From: Gordon Sande
- Re: Read a list with undefined length
- Prev by Date: Re: "Modern Fortran Explained": announcement
- Next by Date: Re: Read a list with undefined length
- Previous by thread: "Modern Fortran Explained": announcement
- Next by thread: Re: Read a list with undefined length
- Index(es):
Relevant Pages
|