mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-22 12:23:37 -05:00
2c17544f3f
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/WSJT/trunk@1 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
27 lines
565 B
Fortran
27 lines
565 B
Fortran
subroutine rfile2(fname,buf,n,nr)
|
|
|
|
C Write a wave file to disk.
|
|
|
|
integer RMODE
|
|
parameter(RMODE=0)
|
|
integer*1 buf(n)
|
|
integer open,read,close
|
|
integer fd
|
|
character fname*80
|
|
data iz/0/ !Silence g77 warning
|
|
|
|
do i=80,1,-1
|
|
if(fname(i:i).ne.' ') then
|
|
iz=i
|
|
go to 10
|
|
endif
|
|
enddo
|
|
|
|
10 fname=fname(1:iz)//char(0)
|
|
fd=open(fname,RMODE) !Open file for reading
|
|
nr=read(fd,buf,n)
|
|
i=close(fd)
|
|
|
|
return
|
|
end
|