I would like to write data in fortran (90 and onwards including 2008) binary format to get the result much quickly and convert into text file so that data can be visualized using Matlab or R.
If I interpret the question correctly, you have some Fortran program writing binary data and now, you would like to load it e.g. with Matlab. Then, have look on this Matlabcentral article, it could be of help for you:
For opening Fortran binary data files in R, you can try the readBin function of R: https://stackoverflow.com/questions/24073635/how-can-i-read-this-fortran-binary-file-in-r
thanks for the answer. I had gone through those links. I would like to ask if there is a way to convert fortran binary file into text file without any alteration ?
The Fortran 95 standard ISO 1739-1:1997 contains FORMATTED and UNFORMATTED I/O data access only. There are not standardized extentions (e. g. Lahey: BINARY) for transparent data transfer, which are compiler-dependent. Using an extention like this one, your program may be not transferable.
The Fortran 2003 introduced the "stream acces input/output" (see: ISO/IEC JTC1/SC22/WG5 N1648, Section 4.5) which may be suitable for your task. Do not forget the remark: "The standard permits the processor..." You should check the transport of your program to another compilers in advance.
Of course, if you will be the only user, you may use even not-standardized statements.(The QA becomes questionable!) In this case. write well-documented notes for the future.