Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> HLP: how to check if file exists ?

HLP: how to check if file exists ?

From: Michael <mich_at_imagic.be>
Date: 1997/11/24
Message-ID: <347968f4.350338528@news.innet.be>#1/1

Hello !

I want to know how you can check in PL/SQL if a file excists or not. BUT without using the UTL_FILE package, ie. without doing something like the following :

    fhFile := UTL_FILE.FOPEN('c:\test\', 'test.txt', 'r');    

EXCEPTION
  WHEN UTL_FILE.invalid_operation THEN ...

Because with this solution I have to copy a lot of code under the THEN in the EXCEPTION, and that's a waiste of time.

I need something like this :

  IF fileExists('c:\test\', 'test.txt') THEN   ...

Does something like this exists ?

Mich Received on Mon Nov 24 1997 - 00:00:00 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US