I am having a hard time finding some information on how to get file names into strings.

What I want is to search a folder on my hard drive (ie...C:\programs\training\) to find all the files of a certain extension (ie... *.cor). As the files are found, I want to set the file name to a string variable array and count the amount of files with that extension.

Can anyone help me?