Hello, I have a small problem with file extensions.

My application only works with one filetype (avi). When I take a file with a .mpg, .wmv, .wav, .mp3, .ac3 or other extension, rename it to avi and use my application with the file, then my application freezes, because it can't read the file.

I need to have some error checking for this. Is there a way to check if a file has the correct extension?

Thanks.