File created by shell script is not opened by python?
<p><code>echo "Denied" &gt; log.txt</code></p>

<p>later log.txt is opened  in python:</p>

<pre><code>def read_file(logs,self):
    print 'here'
    f1=open(logs,"r","utf-8")
    for line in f1:
        print str(line)
</code></pre>

<p>On running it gives error:</p>

<pre><code>"TypeError: coercing to Unicode: need string or buffer, instance found"
</code></pre>
