Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to count files in a folder

633286Apr 29 2008 — edited Apr 29 2008
Hello!

I have a folder with .txt files. If the file name is STRING i need to count all .txt files whose file names contain "STRING".

For example, if there are STRING.txt, STRING1.txt,STRING2.txt.... in the folder, i need to find out how many of .txt files are there, where substr(filename,0,6)='STRING'

How can i do this?

Cheers

A.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 27 2008
Added on Apr 29 2008
5 comments
946 views