Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> pl/sql - looping thru all files in a directory
I have done quite a bit using the UTL_FILE built in package. I can do
just about all the file i/o that I need to do. In every case however,
the file name is known.
In a previous project I was given the file names. Now I am told that all the files reside in a directory and the I need to loop all files in that directory.
In PL/SQL, how can I loop through all the files in a directory (ex. c:\data} and process each file. If I have 5 files in my directory I want to loop through each file until the processing is done.
I guess that I need to be able to get a directory listing in PL/SQL. Does anyone have any ideas?
Thanks. Received on Wed Jan 12 2000 - 23:04:46 CST
![]() |
![]() |