public function write(string $str)
    {
        $handler = fopen($this->_path, "w");
        fwrite($handler, $str);
        fclose($handler);
    }
public function write(string $str)
    {
        $handler = fopen($this->_path, "w");
        fwrite($handler, $str);
        fclose($handler);
    }
public function write ( string $ str ) { $ handler = fopen ( $ this -> _path , "w" ) ; fwrite ( $ handler , $ str ) ; fclose ( $ handler ) ; }
Writes a string to the file.

@param string $str String to write.
Writes a string to the file .