remove blank values from array and suggest a better method to read text file data delimited by '|'
<p>Am trying to get values from a text file in which entries are delimited using '<strong>|</strong>'.am getting the values using string .Split method..but in some places the delimiter appears multiple times in succession like '<strong>||||||||</strong>',so empty space gets inserted in the array how should i remove those empty elements from array or is there any efficient technique to read values from text file delimited by '|".below is my code and the screen shot of array values</p>

<pre><code> var reader = new StreamReader(File.OpenRead(@"d:\er.txt"));
        while (!reader.EndOfStream)
        {
            var line = reader.ReadLine().Trim();
            var values = line.Split('|');
            string[] ee = values;

        }
</code></pre>

<p><img src="http://i.stack.imgur.com/q6nq3.png" alt="array with empty values in between"></p>

<p><strong>can any one suggest a better method for reading data from text file delimited by '|'</strong></p>
