title: Reading .doc file in Python using antiword in Windows (also .docx)
body: <p>I tried reading a <code>.doc</code> file like - </p>
  
  <pre><code>with open('file.doc', errors='ignore') as f:
      text = f.read()
  </code></pre>
  
  <p>It did read that file but with huge junk, I can't remove that junk as I don't know from where it starts and where it ends. </p>
  
  <p>I also tried installing <code>textract</code> module which says it can read from any file format but there were many dependency issues while downloading it in Windows.</p>
  
  <p>So I alternately did this with <code>antiword</code> command line utility, my answer is below. </p>