The code I am using to open the binary file is ...
CHARACTER SHIP32, DATE8 INTEGER NUMBR REAL XLBP,BEAM
OPEN (IHYD,FORM='UNFORMATTED',ACCESS='TRANSPARENT', FILE='FOR013.DAT')
READ (IHYD) SHIP,NUMBR,DATE READ (IHYD) XLBP,BEAM
It opens the file for reading, but the data isn't correctly read into the variables. Am I using the OPEN function correctly for opening binary files, where the format and source is unknown? I assume DIRECT access is more suitable, but the record length is unknown. Also, if the TRANSPARENT feature is assigned, does the program or programmer has to know the exact structure of the file, i.e. exact length and type of the data in the file (number of spaces, etc.) corresponding to specific declaractions of variables used to extract the data?