title: Loading a .csv file into dictionary, I keep getting the error "cannot convert from 'string[]' to 'string'"
body: <p>I've used streamreader to read in a .csv file, then i need to split the values and put them into a dictionary. so far i have:</p>
  
  <pre><code>namespace WindowsFormsApplication2
  {
  public partial class Form1 : Form
  {
  Dictionary&lt;string, string&gt; dict = new Dictionary&lt;string, string&gt;();   
      public Form1()
      {
          InitializeComponent();
      }
      private void Form1_Load(object sender, EventArgs e)
      {
          using (StreamReader reader = new StreamReader("textwords0.csv"))
          {
              string line;
              while ((line = reader.ReadLine()) != null)
              {
                  string[] parts = line.Split(',');
                  dict.Add(parts[0], parts[1]);
              }
          }
      }
  </code></pre>
  
  <p>I keep getting the error "cannot convert from 'string[]' to 'string'" but cant work out how to fix it.</p>
  
  <p>Thanks in advance!</p>
  
  <p>update:
  ...I accidentally left the csv file open and its working now,  sorry for wasting time guys thought i had a different spreadsheet open, some very useful advice though thanks for all the help!</p>