public Scanner(Settings settings) { indexer = new Indexer(); indexer.MinLength = settings.MinLength; if (settings.UseStopWords) { TextReader rdr = new TextReader("stopwords.txt"); indexer.SetStopWords(rdr.GetText()); } }