Re: Assistance Reading Binary Data
- From: nospam@xxxxxxxxxxxxx (Richard Maine)
- Date: Wed, 27 Feb 2008 19:58:05 -0800
Ken Plotkin <kplotkin@xxxxxxxxxxxxxx> wrote:
On Wed, 27 Feb 2008 16:43:26 -0800 (PST), e p chandler <epc8@xxxxxxxx>
wrote:
[snip]
Fortran 2003 allows "stream i/o" with an unformatted file. This[snip]
transmits the data without any accompanying record structure.
A lot of F77 and F90/95 compilers also allow this, with various
keywords like "binary" or "transparent" or "system." F2003
standardized this, both in the finer details of how it works and in
the name.
"unformatted" is still around, but still isn't a pure stream of bytes.
Actually unformatted is orthogonal to stream, at least in the f2003
standardized version. You can have formatted streams and unformatted
streams. An unformatted stream is a pure stream of bytes. In saying that
"unformatted isn't a pure stream of bytes", you are probably thinking
about unformatted sequential.
Some of the vendor-specific versions are different... (and special-cased
in that you might specify form='binary', but then that sort of overrides
access also... or something like that).
But in the standard, there are 3 access methods (sequential, direct, and
stream), and two forms (formatted and unformatted). All 6 combinations
are allowed.
--
Richard Maine | Good judgement comes from experience;
email: last name at domain . net | experience comes from bad judgement.
domain: summertriangle | -- Mark Twain
.
- References:
- Assistance Reading Binary Data
- From: shazrahbar
- Re: Assistance Reading Binary Data
- From: e p chandler
- Re: Assistance Reading Binary Data
- From: Ken Plotkin
- Assistance Reading Binary Data
- Prev by Date: Re: Assistance Reading Binary Data
- Next by Date: passing a pointer to a function using iso_c_binding
- Previous by thread: Re: Assistance Reading Binary Data
- Next by thread: Re: Assistance Reading Binary Data
- Index(es):
Relevant Pages
|