Building a List from a text file in python
<p>I am a python newbie.</p>

<p>I want to read a text file which reads something like this</p>

<pre><code>1345..
245..
..456
</code></pre>

<p>and store it in a list of lists of integers. I want to keep the numbers and replaces the periods by 0s.How do i do it? </p>

<p>EDIT:
Apologize for the ambiguous output spec</p>

<p>p.s I want the output to be a list of list</p>

<pre><code>[ [1,3,4,5,0,0],
[2,4,5,0,0],
[0,0,4,5,6]]
</code></pre>
