title: Reading word2vec Binary File in Python
body: <p>I am trying to read the a bin file. It has millions of lines of a word followed by space separated numbers.</p>
  
  <p>So, far in Python I havent been able to  get a line printed, it either gives gibberish or wrong output. </p>
  
  <pre><code>with open('GoogleNews-vectors-negative300.bin', mode='rb') as file: # b is important -&gt; binary
      for line in file.readline():
          print(line)
  </code></pre>
  
  <p>How should I read a binary file line by line?</p>