You are here

public function ReadableStreamBackupFile::readLine in Backup and Migrate 5.0.x

Read a single line from the file.

Return value

string The data read from the file or NULL if the file can't be read or is at the end of the file.

Overrides BackupFileReadableInterface::readLine

File

src/Core/File/ReadableStreamBackupFile.php, line 145

Class

ReadableStreamBackupFile
Uses a readable PHP stream such as a local file.

Namespace

Drupal\backup_migrate\Core\File

Code

public function readLine() {
  if (!$this
    ->isOpen()) {
    $this
      ->openForRead();
  }
  return fgets($this->handle);
}