title: Cannot store csv file into a dictionary in its original format
body: <p>Have a csv file in the following format:
  <code>a,b</code></p>
  
  <p>Goal is to store this csv file in a dictionary</p>
  
  <p>Problem: csvOne has this as first field</p>
  
  <pre><code>kfjdfdsdsd, second value
  
  aaaaaaa
  sdasdasdaasdasdfffw
  </code></pre>
  
  <p>as a result it does not get stored in it's original format, i.e. only the below part gets stored: </p>
  
  <p>key: "", value: kfjdfdsdsd</p>
  
  <p>My code:</p>
  
  <pre><code>public void StoreInDictionary(string[] file, Dictionary&lt;string, string&gt; dictionary)
          {
              foreach (var line in file)
              {
                  var cleansedLine = Regex.Replace(line, @"\s+", "");
                  var commaIndex = cleansedLine.IndexOf(',');
                  var valueOne = cleansedLine.Substring(0, commaIndex + 1);
                  var valueTwo = cleansedLine.Substring(commaIndex + 1);
  
                  if (!dictionary.ContainsKey(valueOne))
                  {
                      dictionary.Add(valueOne, valueTwo);
                  }
              }
          }
  </code></pre>
  
  <p>p.s. tried Replace \r\n too, did not work</p>
  
  <p>Thanks a lot</p>