TOOL_RES.RFREAD
built-in functionThis function reads the specified resource. If a file handle is included, only the specified resource file will be searched for the named resource. Otherwise, all currently open resource files will be searched.
FUNCTION Tool_Res.Rfread
(rfile rfhandle,
resid VARCHAR2,
restype VARCHAR2 := 'string')
RETURN VARCHAR2;
FUNCTION Tool_Res.Rfread
(resid VARCHAR2,
restype VARCHAR2 := 'string')
RETURN VARCHAR2;
Parameter |
Description |
|
A file to read. |
|
A resource ID. |
|
The type of resource. |
A handle to the specified file.
The following exceptions may be raised by RFREAD
:
|
Raised if the named resource could not be located. |
|
Raised if the supplied "buffer" is smaller than the requested resource. |
|
Raised if an internal error is trapped. |
/*
** This examples uses TOOL_RES.RFREAD
*/
PRODEDURE ban_res IS
resfileh TOOL_RES.RFHANDLE;
res1 VARCHAR2(20);
BEGIN
/* Open a resource file */
resfileh := TOOL_RES.RFOPEN
('C:\resource\test.res');
/* Read resource string 'banner' from file */
res1 := TOOL_RES.RFREAD(resfileh,'banner');
...
TEXT_IO.PUT_LINE(res1);
...
END;
About the TOOL_RES
built-in package
Copyright © 1984, 2005, Oracle. All rights reserved.