Re: Need clarification on unformatted IO



"...unformmated sequentail binary file..." is probably not what you
think it is. FORTRAN sequential I/O is record oriented. Each output
record has control bytes at the beginning and end of every record.
Each write statement generates one complete record. This is true of
both formatted and unformatted files. The only real difference is that
formatted records contain ASCII character data while unformatted
records contain "binary" data. In order to simulate a C-style binary
stream (no record descriptor bytes of any kind) most FORTRAN compilers
have some other non-standard file format option such as "stream",
"binary", or even direct access with LRECL=1.

.