return fwrite($this->getPointer(), $dataStream, strlen($dataStream));
}
+ /**
+ * Writes at given position by seeking to it.
+ *
+ * @param $seekPosition Seek position in file
+ * @param $data Data to be written
+ * @return mixed Number of writes bytes or FALSE on error
+ */
+ public function writeAtPosition ($seekPosition, $data) {
+ // First seek to it
+ $this->seek($seekPosition);
+
+ // Then write the data at that position
+ return $this->getBlockInstance()->writeToFile($data);
+ }
+
/**
* Rewinds to the beginning of the file
*