Oracle9i Supplied PL/SQL Packages and Types Reference Release 1 (9.0.1) Part Number A89852-02 |
|
UTL_FILE , 9 of 18
This procedure reads text from the open file identified by the file handle and places the text in the output buffer parameter. Text is read up to, but not including, the line terminator, or up to the end of the file.
If the line does not fit in the buffer, then a VALUE_ERROR
exception is raised. If no text was read due to end of file,
then the NO_DATA_FOUND
exception is raised.
Because the line terminator character is not read into the buffer, reading blank lines returns empty strings.
The maximum size of an input record is 1023 bytes, unless you specify a larger size in the overloaded version of FOPEN
. See also "GET_LINE_NCHAR Procedure".
UTL_FILE.GET_LINE ( file IN FILE_TYPE, buffer OUT VARCHAR2);
INVALID_FILEHANDLE
INVALID_OPERATION
READ_ERROR
NO_DATA_FOUND
VALUE_ERROR
|
Copyright © 1996-2001, Oracle Corporation. All Rights Reserved. |
|