Oracle Call Interface Programmer's Guide Release 2 (9.2) Part Number A96584-01 |
|
OCI Cartridge Functions, 30 of 43
Opens a file.
sword OCIFileOpen( dvoid *hndl, OCIError *err, OCIFileObject **filep, OraText *filename, OraText *path, ub4 mode, ub4 create, ub4 type );
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 OCIErrorGet()
.
The file identifier.
The file name as a null-terminated string.
The path of the file as a null-terminated string.
The mode in which to open the file. Valid modes are
OCI_FILE_READ_ONLY,
OCI_FILE_WRITE_ONLY,
OCI_FILE_READ_WRITE.
Indicates if the file be created if it does not exist -- valid values are:
OCI_FILE_TRUNCATE -- create a file regardless of whether or not it exists. If the file already exists overwrite the existing file.
OCI_FILE_EXCL -- fail if the file exists, else create.
OCI_FILE_CREATE -- open the file if it exists, and create it if it does not.
OCI_FILE_APPEND -- set the file pointer to the end of the file prior to writing. This flag can be ORed with OCI_FILE_CREATE
File type. Valid values are
OCI_FILE_TEXT,
OCI_FILE_BIN,
OCI_FILE_STDIN,
OCI_FILE_STDOUT,
OCI_FILE_STDERR.
OCI_SUCCESS,
OCI_INVALID_HANDLE,
OCI_ERROR.
|
Copyright © 1996, 2002 Oracle Corporation. All Rights Reserved. |
|