You are here

public function ReadableStreamBackupFile::readLine in Backup and Migrate 8.4

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

lib/backup_migrate_core/src/File/ReadableStreamBackupFile.php, line 140

Class

ReadableStreamBackupFile
Class ReadableStreamBackupFile.

Namespace

BackupMigrate\Core\File

Code

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