public EnglishWordSplitter(string pathToFile) { if (string.IsNullOrEmpty(pathToFile)) { throw new ArgumentException("pathToFile"); } this._reader = new FileTextReader(File.OpenRead(pathToFile)); }
public EnglishWordSplitter(Stream stream) { this._reader = new FileTextReader(stream, Encoding.UTF8, true); }