Abrir fichero

Jorge
09 de Febrero del 2006
Dado el siguiente codigo, por que me dice que el path no es correcto si hay un fichero de texto llamado test_file en c:/.

--CREATE or replace DIRECTORY test_dir AS \'C:\';
-- CREATE DIRECTORY test_dir AS \'/tmp\';
DECLARE
fileHandler UTL_FILE.FILE_TYPE;
BEGIN
fileHandler := UTL_FILE.FOPEN(\'test_dir\', \'test_file.txt\', \'W\');
UTL_FILE.PUTF(fileHandler, \'Look ma, I\'\'m writing to a file!!! \');
UTL_FILE.FCLOSE(fileHandler);
--EXCEPTION
--WHEN utl_file.invalid_path THEN
--raise_application_error(-20000, \'ERROR: Invalid path for file.\');
END;
--/

Muchas gracias


Magoma Cornamentado
09 de Febrero del 2006
Lo mismo es porque las mafunflas helicoidales tienen la trócola esparcida por varios universos paralelos vago la vigilancia certera de la Guardia Nieztchana.

O lo que es lo mismo, en este post está la aclaracion a tu duda :

http://www.programacion.com/bbdd/foros/34/msg/282555/