Reading lines and looping over a file object
<p>I'm trying to read lines from a file and print them in a loop which works, but I get newlines after every print statement.</p>

<p>Here is my class</p>

<pre><code>class FileReader:
    """Reads a file from args"""
    def __init__(self, args):
        input = ''
        with open(args, 'r') as rFile:
            for line in rFile:
                print(line)
</code></pre>

<p>My input file is like this. (The '$'s are new lines):</p>

<pre><code>12 3$
2$
9$
5$
3 4$
</code></pre>

<p>My output becomes:</p>

<pre><code>12 3

2

9

5

3 4
</code></pre>

<p>What is the reason I'm getting those spaces?</p>
