Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29252 Discussions

record length in unformatted (binary) file

Marcio_Pmz
Beginner
510 Views

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!

0 Kudos
1 Reply
Steven_L_Intel1
Employee
510 Views
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.
0 Kudos
Reply