[Fortran] 纯文本查看 复制代码
implicit real*8 (a-h,o-z)
ICH= 12
IRECSZ= 1
OPEN (UNIT = ICH,
. ACCESS = 'DIRECT',
. FILE = 'JPLEPH',
. FORM = 'UNFORMATTED',
. RECL = IRECSZ,
. STATUS = 'NEW',
. IOSTAT = iostat)
END
[Fortran] 纯文本查看 复制代码
implicit real*8 (a-h,o-z)
integer OUT
CVL= 2
ICH= 16
IRECSZ= 1
OPEN (UNIT = ICH,
. FILE = 'JPLEPH',
. ACCESS = 'DIRECT',
. FORM = 'UNFORMATTED',
. RECL = IRECSZ,
. STATUS = 'NEW',
. IOSTAT = iostat)
write(*,*) 'iostat=',iostat
WRITE(ICH,REC=1,IOSTAT=OUT) CVAL
write(*,*) 'OUT=',OUT
END
[Fortran] 纯文本查看 复制代码
implicit real*8 (a-h,o-z)
integer OUT
CVL= 2
ICH= 16
IRECSZ= 1
OPEN (UNIT = ICH,
. FILE = 'JPLEPH',
. ACCESS = 'DIRECT',
. FORM = 'UNFORMATTED',
. RECL = IRECSZ,
. STATUS = 'NEW',
. IOSTAT = iostat)
write(*,*) 'iostat=',iostat
WRITE(ICH,REC=1,IOSTAT=OUT) CVAL
write(*,*) 'OUT=',OUT
END