title: Read specific values out of a text-file and put them in a list
body: <p>I have a text-file with many lines, each line looks like this: 
  "string string double double" between each value is a space. I'd like to read out the first string and last double of every line and put these two values in a existing list. That is my code so far, but it doesnt really work.</p>
  
  <pre><code>    private void bOpen_Click(object sender, RoutedEventArgs e)
      {
          bool exists = File.Exists(@"C:\Users\p2\Desktop\Liste.txt");
  
          if (exists == true)
          {
              StringBuilder sb = new StringBuilder();
  
              using (StreamReader sr = new StreamReader(@"C:\Users\p2\Desktop\Liste.txt"))
              {
                  Vgl comp = new Vgl();
                  comp.name = Abzahlungsdarlehenrechner.zgName;
                  comp.gErg = Abzahlungsdarlehenrechner.zgErg;
  
                  GlobaleDaten.VglDaten.Add(comp);
  
  
                  int i = 0;
                  string line = File.ReadLines(@"Liste.txt").Skip(0).Take(1).First();
                  while ((line = sr.ReadLine()) != null)
                  {
                      sb.Append((line));
                      listBox.Items.Add(line);
                      GlobaleDaten.VglDaten.Add(comp);
  
                      i++;
                  }
              }
          }
  </code></pre>
  
  <p>I have already read this, but it didnt help <a href="https://stackoverflow.com/questions/29837331/how-do-i-read-specific-values-from-a-txt-file-and-put-them-into-a-hashmap">How do I read specific value[...]</a></p>