public function write($value, $glue = "\n") {
        if (is_array($value)) {
            $this->output .= implode(chr(10), $value);
        }
        else {
            $this->output .= $value;
        }
    }