[Fortran] 纯文本查看 复制代码 program main
implicit none
integer::i,s=1940
character(len=5)::dirname
character(len=8)::filename
real::a
open(10,file='TI.dat',form='unformatted',access='direct',recl=48)
do i=1,66
read(10,rec=i)a
write(dirname,'(i4,"s")')s
write(filename,'(i4,".dat")')s
call system("mkdir "//dirname)
open(s,file=trim(dirname)//'\'//filename,form='unformatted',access='direct',recl=48)
write(s,rec=i)a
close(s)
s=s+1
enddo
endprogram
好哒 但结果还是不行 文件没法建立在相应的文件夹下 |