in reply to Reading specific files from a directory

If you are on unix, you can findout like this in single line :
ls -l |perl -ne 'print if /example\d+\.txt/
Ashok