I am trying to write in binary format on console in FORTRAN under windows but I can not do it. I know I can use Open() function and use Form='Unformatted' to open a file and write in binary format. But I need to write on the console not external file.
My project is to use pipe mechanism to communicate between a FORTRAN and a C++ programs. Part of the communication is to send large amount of double precision numbers. Right now I am sending the actual numbers. If I can send them as binary format it will speed up the process.
Is there any way to write in binary format on console in FORTRAN? I tried to typecast the numbers by char() function but it is only for integer not double!
Any help will be appreciated
Thanks