title: Is there a way to read a .txt file and store each line to memory?
body: <p>I am making a little program that will read and display text from a document. I have got a test file which looks like this:</p>
  
  <pre><code>12,12,12
  12,31,12
  1,5,3
  ...
  </code></pre>
  
  <p>and so on. Now I would like Python to read each line and store it to memory, so when you select to display the data, it will display it in the shell as such:</p>
  
  <pre><code>1. 12,12,12
  2. 12,31,12
  ...
  </code></pre>
  
  <p>and so on. How can I do this?</p>