PL/SQL UTL_FILE PACKAGE

From: thierry merlin <t.merlin_at_citb.bull.net>
Date: 1998/01/21
Message-ID: <01bd264b$ff767d40$3c4c5ac0_at_thierry.citb.bull.net>#1/1


Hi,
I'm not an expert in PL/SQL.
So, I want to use UTL_FILE package but somme errors appears :

        UTL_FILE.FOPEN('c:\tmp','tit.txt','r');
        *

ERREUR à la ligne 3:
ORA-06550: Ligne 3, colonne 2:
PLS-00221: 'FOPEN' n'est pas une procédure ou est indéfini
ORA-06550: Ligne 3, colonne 2:

PL/SQL: Statement ignored

I know that FOPEN is a function but if I write : DECLARE
FUNCTION FOPEN(...)RETURN UTL_FILE.FILE_TYPE;          *
ORA-06550: Ligne 2, colonne 10:
PLS-00328: Un corps sous-programme doit être défini pour la déclaration de réexpédition de FOPEN.

ORA-06550: Ligne 4, colonne 2:
PLS-00221: 'FOPEN' n'est pas une procédure ou est indéfini
ORA-06550: Ligne 4, colonne 2:

PL/SQL: Statement ignored

I write and launch my sample.sql under SQL*PLUS like SQL> start sample.sql .
Someone know how to use this package and can give me some samples. Thank's for your help! Received on Wed Jan 21 1998 - 00:00:00 CET

Original text of this message