cyprus106
Programmer
- Apr 30, 2001
- 654
I need a way to read the entire contents of a designated directory. I need to access a list of files programatically. This isn't for the user directly, so I'm not trying to show them in a directory or dialog or anything.
Basically, I've got a random number generator. It picks a random number and I've got a few different files in a directory. Whatever number is picked, it will open the corresponding file. Since the files may vary, I need to have a non hard-coded method of doing this.
On that same note, how do I read how many files are in a directory?
Thanks a lot... Cyprus
Basically, I've got a random number generator. It picks a random number and I've got a few different files in a directory. Whatever number is picked, it will open the corresponding file. Since the files may vary, I need to have a non hard-coded method of doing this.
On that same note, how do I read how many files are in a directory?
Thanks a lot... Cyprus