Re: Need clarification on unformatted IO
- From: "breyfogle" <breyfogle@xxxxxxx>
- Date: 31 Jan 2006 10:57:59 -0800
"...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.
.
- References:
- Need clarification on unformatted IO
- From: Jason C
- Need clarification on unformatted IO
- Prev by Date: Re: fortran
- Next by Date: Re: save attribute for module variables
- Previous by thread: Re: Need clarification on unformatted IO
- Next by thread: Open Watcom Fortran compiler help needed
- Index(es):