public function addOutputToFile($filename)
{
// can we open the file?
$fp = fopen($filename, 'w');
if (!$fp) {
throw new E4xx_CannotOpenOutputFile($filename);
}
// add the file to our list to write to
$this->outputHandles[$filename] = ['handle' => $fp, 'colour' => false];
}