title: How to convert a file into a dictionary?
body: <p>I have a file comprising two columns, i.e.,</p>
  
  <pre><code>1 a 
  2 b 
  3 c
  </code></pre>
  
  <p>I wish to read this file to a dictionary such that column 1 is the key and column 2 is the value, i.e., </p>
  
  <pre><code>d = {1:'a', 2:'b', 3:'c'}
  </code></pre>
  
  <p>The file is small, so efficiency is not an issue.</p>