I'm working on an IMDB style website and I need to dynamically find the amount of reviews for a movie. The reviews are stored in a folder called /moviefiles/moviename/review[*].txt
where the [*]
is the number that the review is. Basically I need to return as an integer how many of those files exist in that directory. How do I do this?
Thanks.