So, to avoid the opening a new thread I will write here again. It seems I still have a problem which I cannot solve. I use
a_million_floats = read(f, Float64, 1_000_000) as it was suggested, however the numbers I get are obviously wrong (there are numbers like 8.68e+272, -5.39e-142, and even NaN). I am pretty that these are not the right numbers. Also, I am pretty sure that the type is correct (it should be 'double' in C/C++). Furthermore, I have i5 CPU, so it should be little endian as it is supposed in .dat file. What could be wrong? Thanks in advance!