Possible Duplicate:
Getting the names of all files in a directory with PHP
I am trying to build a thing where i can scan all the .txt files in a directory then explode them into an array, the seperation would be a "|", then insert them into a sql DB