public function appendToFile($content)
    {
        $result = @fwrite($this->_file, $content);

        if ($result === false) {
            throw new Exception("I'm can not wrtite to file");
        }

        return $result;
    }
public function appendToFile($content)
    {
        $result = @fwrite($this->_file, $content);

        if ($result === false) {
            throw new Exception("I'm can not wrtite to file");
        }

        return $result;
    }
public function appendToFile ( $ content ) { $ result = @ fwrite ( $ this -> _file , $ content ) ; if ( $ result === false ) { throw new Exception ( "I'm can not wrtite to file" ) ; } return $ result ; }
Append to opened file new content

@param string $content

@throws \yii\console\Exception
@return int
Append to opened file new content