My eyes tend to glaze over when I see c code... but I think I see that
you are expecting your 'foo' file to be binary format.
If so, you should set the BINARY keyword to OPENW since the default
behavior on WIN platforms is to write in text format.
sorry for your eyes ;o)
I don't think so because I am writing unformatted.
In fact the result is the same (and IDL_FileOpen should warrantee portability).
I tried also to write the file using the IDL_FileOpen in write mode and using the c-fwrite function. Nothing changes.
I am waiting for the RSINC support answer.
-- Nando Iavarone Advanced Computer System - SPACE DIVISION via Lazzaro Belli, 23 00040 Frascati - RM Tel: +39-6-944091 (switchboard) 9440968 (direct) E-mail: firstname.lastname@example.org FrdndVrn@altavista.net