title: reading data from txt file in fortran
body: <p>I am writing a FORTRAN program that reads data from a text file and writing it to the console. the data file looks something like this</p>
  
  <pre><code>1234567890123456 123456.789 987654.321 673647.890 654356.890
  6172876534567890 768909.098 234543.890 654321.908 987890.090
  </code></pre>
  
  <p>I have the following lines of FORTRAN code that reads data and just writes them to the console</p>
  
  <pre><code> OPEN(1,FILE='data.txt')
      READ(1,'(I16,3F9.3)') A ,B, C, D
      WRITE (*, '(I16,3F9.3)') A,B,C,D
     CLOSE(1)
  </code></pre>
  
  <p>Instead of getting displayed as the same values in the text file, the following is the output</p>
  
  <pre><code>1234567890123456*********89987.656    0.322
  6172876534567890*********98234.547    0.891
  </code></pre>
  
  <p>Can you please help me with this. </p>
  
  <p>Thanks much</p>