title: Read free format with no advance
body: <p>In a given file record, I need to read the first two integer elements at first, and then the rest of the line (a large number of real elements), because the assignment depend on the first 2. Suppose the format of the first two integer elements is not really well defined.</p>
  
  <p>The best way to solve the problem could be something:</p>
  
  <pre><code>read(unitfile, "(I0,I0)", advance='no') ii, jj
  read(unitfile,*) aa(ii,jj,:)
  </code></pre>
  
  <p>But it seems to me the "(I0)" specification is not allowed in gfortran.</p>
  
  <p>Basically the file read in unitfile could be something like:</p>
  
  <pre><code>0   0    &lt;floats&gt;
  0   10   &lt;floats&gt;
  10   0    &lt;floats&gt;
  100   0    &lt;floats&gt;
  100   100    &lt;floats&gt;
  </code></pre>
  
  <p>which is hard to be read with any fortran-like fixed field format specification.</p>
  
  <p>Is there any other way to get around this, apparently trivial, problem?</p>