code: public function read()
      {
          $data = '';
          $fileObj = $this->openFile();
          while (!$fileObj->eof()) {
              $data .= $fileObj->fread(4096);
          }
          $fileObj = null;
          return $data;
      }
docs: Get file content.
  
  @return string|mixed