How can I determine if some text is a valid file name without a bunch of if's or select case statements? (ex. *.txt invalid, qwerty.txt valid)

------------------
Visual Basic Programmer (at least I want to be one)
------------------
PolComSoft
You will hear a lot about it.