Read a list with undefined length



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
.



Relevant Pages

  • Re: Read a list with undefined length
    ... In other words in the file the number of records is explicit (an ... I would not specify the number of records. ... EOR can only be specified for nonadvancing READ statements." ... read npts ...
    (comp.lang.fortran)
  • Re: Read a list with undefined length
    ... integer:: npts, x, y ... You might also have to use an explicit format, rather than the * I used. ... I would not specify the number of records. ... EOR can only be specified for nonadvancing READ statements." ...
    (comp.lang.fortran)
  • Re: matlab speed issues
    ... Such confusion will waste far more time down ... Maybe you can save some time by using style sheets that specify ... to a data file or figure, and then write a small file that ...
    (comp.soft-sys.matlab)
  • Re: Read a list with undefined length
    ... I would not specify the number of records. ... EOR can only be specified for nonadvancing READ statements." ... Write a nice fortran program that asks about array length, allocates an array, and read it from disk. ...
    (comp.lang.fortran)
  • Re: Read a list with undefined length
    ... I would not specify the number of records. ... EOR can only be specified for nonadvancing READ statements." ... EOR and ERR are much more for do-it-yourself error ...
    (comp.lang.fortran)