I have a need to open multiple files and grab certain info from each one. Each file would have the same extension and reside in the same directory. Doing what I need to with info is not a problem. My problem is, how do I handle the multiple files? I don't need to open more than one file at a time, but I don't want to open the same file more than once. It would be preferable to rename the file once I'm finished with it but I'm not sure how to keep track of them.

There could be 50 files in the directory or 500 and I would need to be able handle any number of files.