/**
* Rewinds to the beginning of the file
*
- * @return void
+ * @return $status Status of this operation
*/
public function rewind () {
// Rewind the pointer
- assert(rewind($this->getPointer()) === 1);
+ return rewind($this->getPointer());
}
/**
*
* @param $seekPosition Seek position in file
* @param $whence "Seek mode" (see http://de.php.net/fseek)
- * @return void
+ * @return $status Status of this operation
*/
public function seek ($seekPosition, $whence = SEEK_SET) {
// Move the file pointer
- assert(fseek($this->getPointer(), $seekPosition, $whence) === 0);
+ return fseek($this->getPointer(), $seekPosition, $whence);
}
}