title: Turn .txt file into matrix of ints in python
body: <p>If I have a txt file with the contents as such:</p>
  
  <pre><code>4 2 45 21
  0 92 12 2
  345 9 3 4
  1 2 39 93
  </code></pre>
  
  <p>Is there a quick and easy way to turn this into a matrix of int?</p>
  
  <p>Right now, I have accessed the file this way:</p>
  
  <pre><code>file = open(testFile, 'r')
  data = []
  for row in file:
      data.append(row)
  </code></pre>
  
  <p>This stores the data as an array where each line is a string. Instead of going through and converting the data types and then turning it into a matrix, is there a way I can immediately store this data in matrix form as ints as I read it in?</p>