Hi Shawn, welcome to the Ranch, and thanks for contributing!
Just one little thing... I added the "code tags" to your code. See how much more readable it is? All you have to do when you're posting code is to highlight the code and click the "Code" button which is above the box you're posting in.
subject: How to search for text files inside a folder ?