public function moveTo($index)
{
$this->recordPos = $index;
if ($index < 0) {
return null;
}
fseek($this->fp, $this->headerLength + $index * $this->recordByteLength);
$this->record = new Record($this, $this->recordPos, $this->readBytes($this->recordByteLength));
return $this->record;
}