|Oracle Call Interface Programmer's Guide
Release 2 (9.2)
Part Number A96584-01
OCI Cartridge Functions, 34 of 43
Changes the current position in a file.
sword OCIFileSeek( dvoid *hndl, OCIError *err, OCIFileObject *filep, uword origin, ubig_ora offset, sb1 dir );
The OCI environment or user session handle.
The OCI error handle; if there is an error, it is recorded in
err and this function returns OCI_ERROR; diagnostic information can be obtained by calling
A file identifier that uniquely references the file.
The starting point we want to seek from. The starting point may be
OCI_FILE_SEEK_CURRENT (current position),
OCI_FILE_SEEK_END (end of file).
The number of bytes from the origin you want to start reading from.
The direction to go from the origin.
This will allow a seek past the end of the file. Reading from such a position will cause an end-of-file condition to be reported. Writing to such a position will not work on all file systems. This is because some systems do not allow files to grow dynamically. They require that files be preallocated with a fixed size. Note that this function performs a seek to a byte location.