The programme following reads a file using subroutine readfa@ and produces different results for the 32 and 64 bit executable compiled from it.
Programme Code
character*1024 data
character*512 filename
integer (kind=2) handle,error_code
integer (kind=3) nbytes_read
filename='MOD1.BNA'
call openr@(filename,handle,error_code)
call readfa@(data,handle,nbytes_read,error_code)
write(*,*) 'data=',data(1:nbytes_read)
call readfa@(data,handle,nbytes_read,error_code)
write(*,*) 'data=',data(1:nbytes_read)
end
File Mod1.BNA consists of the two lines following: #003 #001
The 32 bit executable compiled from this code produces the result data=#003 data=#001 as I expect. The 64 bit executable compiled from this code, however, produces the result data=#003 data=001 omitting the character '#'.
Regards, Dietmar