public static void ReadLines() { lines = System.IO.File.ReadAllLines(filePath); NodeRoot tree = new NodeRoot(); foreach (string line in lines) { tree.AddWord(line); Console.WriteLine("Added " + line + " to tree."); } }
static void Main(string[] args) { NodeRoot tree = new NodeRoot(); Console.WriteLine("Hello World!"); //read in the dictionary DictionarySorter.ReadLines(); //reverse alphabetize the dictionary //DictionarySorter.ReverseLines(); //write to the dictionary folder with the lists of each item that starts with... DictionarySorter.StartsWithLetters("Z"); DictionarySorter.StartsWithLetters("He"); DictionarySorter.HasLetterAtPosition('e', 2); Console.Read(); }