public function addWordsFromTextFile($filePath, $delimiter = "\n")
    {
        $words = explode($delimiter, file_get_contents($filePath));
        $this->addWords($words);
    }
public function addWordsFromTextFile($filePath, $delimiter = "\n")
    {
        $words = explode($delimiter, file_get_contents($filePath));
        $this->addWords($words);
    }
public function addWordsFromTextFile ( $ filePath , $ delimiter = "\n" ) { $ words = explode ( $ delimiter , file_get_contents ( $ filePath ) ) ; $ this -> addWords ( $ words ) ; }
Add words from a text file to the dictionary

@param  string $word
@return void
Add words from a text file to the dictionary