public function load($uri) { if ($this->handle) { $this->close(); } $this->handle = fopen($uri, 'r'); }