title: How to get data from array based on a specific value
body: <p>I'm working in C# and I have troubles with importing data.</p>
  
  <p>I have a txt document which contains data:</p>
  
  <pre><code>S/1234 001 2583 2 0 3 
  S/1234 002 4323 2 0 3
  S/1234 003 4583 2 0 3
  S/2582 001 8745 3 0 4
  S/2582 002 8254 3 0 4
  S/2582 003 658T 3 0 4
  S/2582 004 8785 3 0 4
  </code></pre>
  
  <p>I imported this document in a list:</p>
  
  <pre><code>S/1234 2583
  S/1234 4323
  S/1234 4583
  S/2582 8745
  S/2582 8254
  S/2582 658T
  S/2582 8785
  </code></pre>
  
  <p>And code looks like this:</p>
  
  <pre><code> string[] lines = System.IO.File.ReadAllLines(@fileLocal);
   List&lt;string&gt; whole_line = new List&lt;string&gt;();    
   List&lt;string&gt; only_first_column = new List&lt;string&gt;();    
   foreach (string line in lines)
      {
       string[] linee=line.Split(new string[] { " " }, StringSplitOptions.RemoveEmptyEntries);
       whole_line.Add(linee[0].ToString()+" "+linee[2].ToString());
       only_first_column.Add(linee[0].ToString());
      }
  </code></pre>
  
  <p>Now, my question is, how can I get the data and store it in two arrays/or list by values S/1234 and S/2582?</p>
  
  <p>I'm trying to get array #1:</p>
  
  <blockquote>
    <p><code>2583 4323 4583</code></p>
  </blockquote>
  
  <p>and array #2:</p>
  
  <blockquote>
    <p><code>8745 8254 658T 8785</code></p>
  </blockquote>
  
  <p>Thank you in advance:)</p>