title: How can I read a matrix from a txt file in R?
body: <p>I have a txt file with a matrix </p>
  
  <p>Matrix.txt(Important: There are no spaces between the numbers!):</p>
  
  <pre><code>0100
  1001
  1100
  </code></pre>
  
  <p>I want to read it in R as a matrix, how can I do that?</p>
  
  <p>I tried with as.matrix(read.table("Matrix.txt", sep="")), but it failed, because every line will be read as one string, but not 4 characts. The <code>sep=""</code> doesn't work.</p>