title: fortran, read command
body: <p>I have a .dat file that I want to read with a program in Fortran 90. The data file contains only one very long column of complex numbers. My problem is that I want to read only one part of the column, e.g., only from the nth up to the mth element including, and create an one-dimensional array from it. However, if I write something like</p>
  
  <pre><code>open(unit = 100, file = 'datafile.dat', status = 'old', action = 'read')
  do j = n,m
         read(100,*) vec(j-n+1)
      end do
  close(100)
  </code></pre>
  
  <p>the program reads the first m-n+1 elements from my file and not the ones from n to m including. Is there any way to do what I want?</p>