FILESEEK
FILESEEK changes the current file position associated with file x to a new location within the file. The next operation on the file takes place at the new location. FILESEEK is equivalent to the fseek function in C.
FILESEEK returns a FIXED BIN(31) value. The value is 0 if the change in file position is successful; it is nonzero otherwise.
- x
- File reference.
- y
- A size_t value that indicates the number of positions the file pointer is to be moved relative to z.
- z
- A FIXED BINARY(31) value that indicates the origin from which
the file pointer is to be moved. The following values are valid:
- -1
- Beginning of the file
- 0
- Current position of the file pointer
- 1
- End of the file
FILESEEK can be used only on zFS TYPE(U) files.