Home > Archive > Fortran > June 2007 > Nonadvancing sequential unformatted i/o?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Nonadvancing sequential unformatted i/o?
|
|
| ejkost@gmail.com 2007-06-13, 10:06 pm |
| Looking at my copy of Adams, Brainerd, et al., it seems that
nonadvancing
sequential unformatted i/o is not permitted; that is, one cannot say
read(unit,advance='NO') partial_data
read(unit) rest_of_data
This strikes me as a curious restriction, but in any case...
Is this usage supported in Fortran 2003?
--Eric
| |
| Richard Maine 2007-06-13, 10:06 pm |
| <ejkost@gmail.com> wrote:
> Looking at my copy of Adams, Brainerd, et al., it seems that
> nonadvancing
> sequential unformatted i/o is not permitted; that is, one cannot say
>
> read(unit,advance='NO') partial_data
> read(unit) rest_of_data
>
> This strikes me as a curious restriction, but in any case...
> Is this usage supported in Fortran 2003?
No, it is not in f2003.
Other people have asked for such a thing, but it just never got
accepted. I don't really recall why.
Do take a look at the stream I/O in f2003. It might or might not meet
your needs. Stream unformatted does not have a record structure at all.
--
Richard Maine | Good judgement comes from experience;
email: last name at domain . net | experience comes from bad judgement.
domain: summertriangle | -- Mark Twain
| |
|
|
|
|
|