Exemplo n.º 1
0
        static void Main(string[] args)
        {
            var dict = new FileDictionary(@"C:\Users\dorse\source\repos\WordStats\WordStats\bin\Debug\Dictionary.txt");
            //string[] words = { "hello", "he", "hell", "hole" };
            //foreach (string s in words)
            //{
            //    dict.Add(s);
            //}
            WordFinder wf = new WordFinder(dict);
            var        l  = wf.GetWords(Console.ReadLine());

            l = GetList(3, l);
            l = l.OrderBy(x => x.Length).ToList();


            foreach (string s in l)
            {
                Console.WriteLine(s);
            }
            Console.ReadKey();
        }