public function write($string, $append = true)
    {
        $mode = $this->getMode($append);
        $this->setHandle($mode);

        return fwrite($this->handle, $string);
    }
public function write($string, $append = true)
    {
        $mode = $this->getMode($append);
        $this->setHandle($mode);

        return fwrite($this->handle, $string);
    }
public function write ( $ string , $ append = true ) { $ mode = $ this -> getMode ( $ append ) ; $ this -> setHandle ( $ mode ) ; return fwrite ( $ this -> handle , $ string ) ; }
Write a string into a file

@param string $string The string to write
@param bool   $append Append to file

@return int
Write a string into a file