record length in unformatted (binary) file

record length in unformatted (binary) file


Is there somehow to know the lenght of records in an unformatted (binary) file?

Would 'inquire' statement be an option?

Of course I understand that with the record length I may use direct access at open statement. On the other hand, if I wish to use sequential access, how would I use the record length info?


2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

See my reply to your question in comp.lang.fortran. The short answer is "No, there isn't". If you're just reading a sequential unformatted file, the implementation handles the lengths automatically, but there is no language feature to access them.

Retired 12/31/2016

Leave a Comment

Please sign in to add a comment. Not a member? Join today