 If specifying an absolute offset, then ensure it is in the range [0, &lt;total number of bytes in the file&gt;], or if specifying a relative offset, then ensure it is no greater than the current byte position plus the number of bytes remaining in the file.