I have got this error.
ORA-06550: line 2, column 5:
PLS-00201: identifier 'UTL_FILE' must be declared
ORA-06550: line 2, column 5:
PL/SQL: Item ignored
ORA-06550: line 5, column 4:
PLS-00320: the declaration of the type of this expression is incomplete or malformed
ORA-06550: line 5, column 4:
PL/SQL: Statement ignored
ORA-06550: line 6, column 22:
PLS-00320: the declaration of the type of this expression is incomplete or malformed
ORA-06550: line 6, column 4:
PL/SQL: Statement ignored
ORA-06550: line 7, column 20:
PLS-00320: the declaration of the type of this expression is incomplete or malformed
ORA-06550: line 7, column 4:
PL/SQL: Statement ignored
..................................................
I am writting this code
Please tell me what mistake I have made
Expand|Select|Wrap|Line Numbers
- DECLARE
- f UTL_FILE.FILE_TYPE;
- s VARCHAR2(200);
- BEGIN
- f := UTL_FILE.FOPEN('c:\Documents and Settings\joshipr\Desktop\New Folder','data.txt','R');
- UTL_FILE.GET_LINE(f,s);
- UTL_FILE.FCLOSE(f);
- DBMS_OUTPUT.PUT_LINE(s);
- END;