Alessio, you still have the third incorrect parameter in your call to open(). You need to OR the last two parameters there as well.
thank you. now it works with that values too.
-6.27744e+066That looks a lot like accidental/uninitialised memory reinterpreted as a double - the upper bytes are 0xCDCDCDCE...
Are you sure you are running the exact same program you have reproduced here? Apart from the missing bitwise-OR already mentioned, there isn't anything particularly wrong with your code snippet, and a compiler bug is beyond unlikely.
it was the comma in the input-mode of open()... anyway it is so strange, the comma don't brake me the read-back if I use other floating values.. Probably since ios openmodes are macros, some "funny" things happened...