1 backup.file.inc public BackupFile::read($size = NULL)

Read a line from the file.

File

core/includes/backup/backup.file.inc, line 145
Contains the BackupFile class.

Class

BackupFile
Provides a utility object for reading and writing local backup files.

Code

public function read($size = NULL) {
  if (!$this->handle) {
    $this->handle = $this->open();
  }
  if ($this->handle && !feof($this->handle)) {
    return $size ? fread($this->handle, $size) : fgets($this->handle);
  }
  return NULL;
}