title: Using Strings to Import .dat Column Lists to Form Multiple Arrays
body: <p>I have a file of .dat files each titled "Dk_LCDM_z" each with a suffix corresponding to values of z as shown in my code. Each of these files has 3 columns and I would like to import each column. </p>
  
  <p>In other words for each value of z, I would like to import a 50(?)x3 matrix each of which is from a different .dat file.</p>
  
  <p>I don't have a huge amount of experience in Python and have already attempted to use both np.genfromtxt and importlib to no avail.</p>
  
  <pre><code>z  = [0,0.25,0.5,0.75,1,1.25,1.5,1.75,2,2.25,2.5,2.75,3,3.25,3.5,3.75,4]
  </code></pre>
  
  <p>Apologies for the lack of code, as I have already deleted/overwritten older versions where I attempted the solution.</p>
  
  <p>The .dat files I have look something like this, but for many more rows.</p>
  
  <pre><code>0.100000E-03    0.248466E-10    0.248466E-10
  0.102016E-03    0.268944E-10    0.268944E-10
  0.104072E-03    0.291109E-10    0.291109E-10
  0.106170E-03    0.315101E-10    0.315101E-10
  0.108311E-03    0.341071E-10    0.341071E-10
  0.110494E-03    0.369181E-10    0.369180E-10
  0.112721E-03    0.399607E-10    0.399607E-10
  0.114994E-03    0.432540E-10    0.432540E-10
  0.117312E-03    0.468188E-10    0.468188E-10
  </code></pre>
  
  <p>And I would like to be able to call values from the second and third columns independently, as they both depend on the first column and z respectively. I'm not sure how best to do this though.</p>