public static void ParseFile(string file_loc) { ReadFile file_reader = new ReadFile(file_loc); Trie trie = new Trie(); WordCount word_counter = new WordCount(file_reader, trie); word_counter.count(); Console.WriteLine("Count : isPrime : Word"); foreach (var entry in word_counter.getDict()) { Console.WriteLine(entry.Value + " : " + isPrime(entry.Value) + " : " + entry.Key); } }
public WordCount(ReadFile file_reader, Trie trie) { this.file_reader = file_reader; this.trie = trie; }