protected function write($string, $format = true)
    {
        if ($format) {
            $string .= $this->delimiter;
        }

        $string .= "\n";

        if (fwrite($this->file, $string, strlen($string)) === false) {
            throw new Exception('Unable to write '.strlen($string).' bytes to the dumpfile.');
        }
    }
protected function write($string, $format = true)
    {
        if ($format) {
            $string .= $this->delimiter;
        }

        $string .= "\n";

        if (fwrite($this->file, $string, strlen($string)) === false) {
            throw new Exception('Unable to write '.strlen($string).' bytes to the dumpfile.');
        }
    }
protected function write ( $ string , $ format = true ) { if ( $ format ) { $ string .= $ this -> delimiter ; } $ string .= "\n" ; if ( fwrite ( $ this -> file , $ string , strlen ( $ string ) ) === false ) { throw new Exception ( 'Unable to write ' . strlen ( $ string ) . ' bytes to the dumpfile.' ) ; } }
Writes a line to the file.

@param string $string  The string to write
@param bool   $format  Format the string
Writes a line to the file .