List<string> textLines = File.ReadAllLines(path);
HashSet<string> fileStrings = new HashSet<string>(File.ReadLines(path));
static IEnumerable<string> ReadLines(string filename)
{
using (TextReader reader = File.OpenText(filename))
{
string line;
while ((line = reader.ReadLine()) != null)
{
yield return line;
}
}
}