Opening multiple files in Fortran 90
问题 I would like to open 10,000 files with file names starting from abc25000 until abc35000 and copy some information into each file. The code I have written is as below: PROGRAM puppy IMPLICIT NONE integer :: i CHARACTER(len=3) :: n1 CHARACTER(len=5) :: cnum CHARACTER(len=8) :: n2 loop1: do i = 25000 ,35000 !in one frame n1='abc' write(cnum,'(i5)') i n2=n1//cnum print*, n2 open(unit=i ,file=n2) enddo loop1 end This code is supposed to generate files starting from abc24000 until abc35000 but it