public function rewind() { if (!$this->file->isOpen()) { $this->file->openForRead(); } $this->file->rewind(); $this->count = 0; $this->next(); }