This file I want to look at has NO PREDEFINED structure, it was
not written by a FORTRAN program. So I have to put a record in
a buffer and read it with DIRECT ACCESS.
Now if the quantity is say REAL*8 in byte position 8, do I
have to do this:
print *,"x =", x
Or is there a "cleaner" way to do it?
Like a copy without a type conversion, for example.
Yet another "dirty" way is using a COMMON block:
COMMON. /FILE10/ buf(7),x
But then the READ would normally be in a separate routine,
and the COMMON region would be defined differently to encompass
all the quantities in the buffer.
Why do I not use C++? Cause I am lazy,
and have been using Fortran for 50 years.