reading and writing into file, proper indenting and syntax highlighting
<p>I am trying to read from one file and write to another file using:</p>

<pre><code>with open('example2') as inpf, open('outputrt','w') as outf:  
    for l in inpf:
        outf.write(l)  
</code></pre>

<p>But I am getting a syntax error at the line 1 i.e. </p>

<p><code>"with open('example2') as inpf, open('outputrt','w') as outf:" pointing at "inpf,"</code></p>

<p>My python version is 2.6. Is there an error in syntax?</p>
