| 求助,读取某个TXT文件中的数值,这些数值是包含了2位小数的数值,在读取过程中,之前采用的是read(2,*),即可读取,但是在更新了该TXT文件后,一直报错。想问一下,这边所需要的的txt格式是什么? 
 [Fortran] syntaxhighlighter_viewsource syntaxhighlighter_copycode open(2,file='C:\Users\dell\Desktop\speed.txt')  
subroutine pre_speed                                                 
      use global_variable 
       implicit real*8(a-h,o-z)
          integer :: i,j
         character*8 :: filelist
    do i=1,141   
     read(2,*) j, Gspeed(i)
   enddo此外,speed.txt 内容如下
 
 
 [Fortran] syntaxhighlighter_viewsource syntaxhighlighter_copycode 1	244.89
2	294.42
3	192.68
4	177.66
5	207.68
6	253.15
7	177.29
8	159.93
9	214.01
10	216.74
11	244.26
12	190.23
13	212.52
14	198.26
 
 |