1. The binary file was created by a C++ program. It includes a head line of (double, double, int, int, double) or (8,8,4,4,8) in bytes, mutiple records of structure of (double, double, double, integer) or (8, 8, 8, 4), then two integers after each structure. 2. C++ save the structure as (8, 8, 8, 8) bytes maybe for effeciency or other reasons 3. So the binary can be views as 8 8 4 4 8 Lx Ly Nlx Nly gama 8 8 8 8 8( the last 8 is 4,4) Rx Ry radius id (row col) 8 8 8 8 8 ... Assuming the two integers (row and col) after each structure record are not critical, open function in Fortran 77 with fixed record length can be used to read in the structure data (Rx, Ry, radius). Otherwise, only Fortran 95 or later version with streams can be used. 4. In Fortran 77, the binary file can be read out using "unformatted" "direct" "open" with recl=8 gfortran -ffixed-form -ffixed-line-length-none readFile.f ./a.out 5. In Fortran 95 or later version, the binary file can be read out using Streams gfortran -std=f2003 readFile.f95 ./a.out