directory listing
Posted: Fri Apr 25, 2003 2:28 pm
i've been poking around the search on this forum for some time and can't seem to find the answer to my question.
i want to be able to output a list of the sub-directories within the directory i'm currently in, so that the user can click on said subdirectory, have a displayed list of text files, and then they'll be allowed to edit the text files.
can someone point me in the correct direction for the function which would perhaps count the number of subdirectories in the current directory, allowing for a for loop to go through and use another function that would return the name of the subdirectory? is this even possible, or am i stuck just hardcoding the names of the subdirectories in?
-ben
i want to be able to output a list of the sub-directories within the directory i'm currently in, so that the user can click on said subdirectory, have a displayed list of text files, and then they'll be allowed to edit the text files.
can someone point me in the correct direction for the function which would perhaps count the number of subdirectories in the current directory, allowing for a for loop to go through and use another function that would return the name of the subdirectory? is this even possible, or am i stuck just hardcoding the names of the subdirectories in?
-ben