I have a list of Url in file url.data like this
http://site1.org/info.php
http://site2.com/info/index.php
http://site3.edu/
I load in array of string with link function
string[] asUrlData = File.ReadAllLines("url.data").Where(s => !string.IsNullOrEmpty(s))
.Distinct().
.ToArray();
I want to get the left parts of Uris in the array like
http://site1.org/
http://site2.com/info/
http://site3.edu/
Is there any way to do this using LINQ?