private void LoadFromFile() { BufferWords.Clear(); CountLocalWords = 0; StreamReader stream = new StreamReader(Path); while (!stream.EndOfStream) { BufferWords.Add(TransleteWord.Parse(stream.ReadLine())); CountLocalWords++; } stream.Close(); }
public void Add(String word) { this.LocalWords.Add(TransleteWord.Parse(word)); }