Log in

View Full Version : Output a list of all files in a directory?


Gary King
04-26-2003, 12:47 AM
How can I output a list of all of the files in a certain directory? Also, how can I output the list showing only the filename, without the extension?

Example:

Directory of /files/

Files:

file1.swf
file2.zip
file3.rar
file4.txt
file5.doc

I want to output this to show up something like this:


Files you can Download:

file1
file2
file3
file4
file5


Thanks in advance!

Gary King
04-26-2003, 12:50 AM
Nevermind, I got it.