Hello! I've created a binary file using Intel Fortran (Parallel Studio)+Visual Studio (x64). The file stores 3d array of real numbers and has very simple structure: first three numbers stored in the file are integers (kind=4) - they are dimensions of the array. Other numbers are reals (also kind=4). To write them into the array in Fortran I used functions
open(1, FILE=path, iostat=IOS, action="WRITE", form="BINARY", recl=4)
write(1) imax; write(1) jmax; write(1) kmax;
write(1) arr(i,j,k)
To read this file in Mathematica I used {N1, N2, N3} = BinaryReadList[filename, "Integer32", 3] for integers and they were read succesfully. The problem is that real numbers were read incorrecly when I've used BinaryReadList[filename, "Real32", 1] for each of them. Changing the option "ByteOrdering" doesn't help.