title: Write error in Fortran
body: <p>I am struggling to read from one input text file into a new text file using the Fortran compiler in Visual Studio 10. My input file is in gslib format (attached) </p>
  
  <pre><code>program main  
  
  ! Unit numbers:  
  
        lisa = 4  
        lfke = 9  
  
  ! Writing input data to file Lisa  
  
        open(unit=lisa,file='fake.dat',status='OLD',err=80)  
        open(unit=lfke,file='dlfke',status='NEW', err=80)  
        read(lisa,*,err=80)  
        read(lisa,*,err=80) line  
        write(9,*) line    
        close(unit=lisa)  
        close(unit=lfke)           
        80   stop 'ERROR in test file!'  
        end
  </code></pre>