// Simple flush file header which will create it.
$this->flushFileHeader();
+ // Seek to beginning of file
+ $this->getIteratorInstance()->rewind();
+
+ // And update seek position ...
+ $this->updateSeekPosition();
+
+ // ... to write it back into the file
+ $this->flushFileHeader();
+
//* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput(sprintf('[%s:%d:] EXIT!!', __METHOD__, __LINE__));
}
if ($flushHeader === TRUE) {
// Flush header
$this->flushFileHeader();
+
+ // Seek to old position
+ $this->seekToOldPosition();
} // END - if
- // Seek to old position
- $this->seekToOldPosition();
//* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput(sprintf('[%s:%d:] EXIT!', __METHOD__, __LINE__));
}