title: Associate string to declared variable in FORTRAN
body: <p>I have a code that begins like that:</p>
  
  <pre><code>PROGRAM EXAMPLE
  
  IMPLICIT NONE
  REAL, DIMENSION(:,:), ALLOCATABLE :: A B
  </code></pre>
  
  <p>Now, I want the program to read a txt-file like that: </p>
  
  <p>A<br>
  1 2<br>
  3 4<br>
  B<br>
  5 6<br>
  7 8<br></p>
  
  <p>And then allocate the matrix [1 2;3 4] to A, and [5 6;7 8] to B. What I planned to do is to read the txt-file and, when it finds A, somehow refer to the previously declared variable A - and so on with B.</p>
  
  <p>Any idea on how to do that?</p>