title: How to convert _io.TextIOWrapper to string?
body: <p>I read the text format using below code,</p>
  <pre><code>f = open(&quot;document.txt&quot;, &quot;r+&quot;, encoding='utf-8-sig')
  f.read()
  </code></pre>
  <p>But the type of <code>f</code> is <code>_io.TextIOWrapper</code>. But I need type as string to move on.</p>
  <p>Please help me to convert  <code>_io.TextIOWrapper</code> to string.</p>