protected function open() { if (!file_exists($this->tableName)) { throw new \Exception(sprintf('File %s cannot be found', $this->tableName)); } $this->fp = fopen($this->tableName, 'rb'); $this->readHeader(); return $this->fp != false; }