- Jan 18, 2002
- 5,893
- 0
- 76
I'm working on a slight modification to my website and want to read the contents of a directory in reverse order. By default, readdir() does it in the order the files appear. Is there a good, preferably easy, way to reverse the order that readdir() works? I'm sure I could come up with a way to get the files in the order I want, but if I can just read them backwards, that'd be a lot easier and more efficient.
Thanks to anyone that can help.
Thanks to anyone that can help.