record length in unformatted (binary) file

record length in unformatted (binary) file

Hello,

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?

Thanks!

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.

Steve - Intel Developer Support

Leave a Comment

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