title: What is the best way to read a comma delimited configuration file?
body: <p>I have a comma delimited configuration file. The empty lines are ignored and there need to be errors on invalid lines:</p>
  
  <blockquote>
    <p>foo,bar</p>
    
    <p>foo2, bar3</p>
  </blockquote>
  
  <p>I want to read this file into a <code>HashMap</code> where the key (foo) is mapped with a value (bar). </p>
  
  <p>What is the best way to do this?</p>