|Oracle Call Interface Programmer's Guide
Release 2 (9.2)
Part Number A96584-01
OCI Cartridge Functions, 32 of 43
Reads from a file into a buffer.
sword OCIFileRead( dvoid *hndl, OCIError *err, OCIFileObject *filep, dvoid *bufp, ub4 bufl, ub4 *bytesread );
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 pointer to a buffer into which the data will be read. The length of the allocated memory is assumed to be
The length of the buffer in bytes.
The number of bytes read.
As many bytes as possible will be read into the user buffer. The read will end either when the user buffer is full, or when it reaches end-of-file.