Newsgroups: comp.lang.fortran
From: nos...@see.signature (Richard Maine)
Date: Mon, 1 Oct 2012 19:23:00 -0700
Subject: Re: record length in an unformatted (binary) file
marcio.pmz <mtnobrega....@gmail.com> wrote:
file?
> Is there somehow to know the lenght of records in an unformatted (binary) Not anything portable or defined by the standard.
I might also note that "binary" is not a term defined by the Fortran
With most implementations, you can open such a file with any record
I might note that unformatted stream access, introduced in f2003, and
> Would 'inquire' statement be an option?
No.
> Of course I understand that with the record length I may use direct access
For sequential access, the recl specifier in the open statement is not
> at open statement. On the other hand, if I wish to use sequential > access, how would I use the record length info? actually the record length. It is the maximum record length. There is usually little reason to specify it for sequential access. In the past, some implementations have had fairly small default values for the maximum record length. In that case, specifying a large value for recl might tell the implementation to accomodate suffcient buffers or other resources required to support that record length. However, to me knowledge, most current implementations default to having the recl limit as large as the implementation can support, which is often something like 2GB (or sometimes more). If you are working with records long enough that this is an issue, there are probably lots of other matters that also need careful attention. -- You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||