I think there is a bug with the IFort v.11. I wrote a simple code to translate a binary file to an ascii file but it generates 3 nul characters between each letter.
But whenI compile the code with gfortran, it works.
Here is the code:
program main
implicit none
Character :: Text =""
Open ( Unit = 99 , &
File = "sp.txt" , &
Access = "Direct" , &
Action = "WRITE" , &
Form = "Unformatted" , &
RecL = 1 , &
Status = "REPLACE" )
Write(Unit = 99, Rec=1) "A"
Write(Unit = 99, Rec=2) "B"
Text = "W"
Write(Unit = 99, Rec=3) TEXT
Text = "X"
Write(Unit = 99, Rec=4) TEXT
close(99)
end program main


