Using C# how can I test a file is a jpeg? Should I check for a .jpg extension?
Thanks
Depending on the context in which you're looking at this file, you need to remember that you can't open the file until the user tells you to open it.
(The link is to a Raymond Chen blog entry.)