title: Reading a line with scientific numbers (like 0.4E-03)
body: <p>I would like to process the following line (output of a Fortran program) from a file, with Python:</p>
  
  <pre><code>74      0.4131493371345440E-03  -0.4592776407685850E-03  -0.1725046324754540
  </code></pre>
  
  <p>and obtain an array such as:</p>
  
  <pre><code>[74,0.4131493371345440e-3,-0.4592776407685850E-03,-0.1725046324754540]
  </code></pre>
  
  <p>My previous attempts do not work. In particular, if I do the following :</p>
  
  <pre><code>with open(filename,"r") as myfile:
      line=np.array(re.findall(r"[-+]?\d*\.*\d+",myfile.readline())).astype(float)
  </code></pre>
  
  <p>I have the following error : </p>
  
  <pre><code>ValueError: could not convert string to float: 'E-03'
  </code></pre>