How would I go about getting the file types of each file detected by File.ListFiles?
I know there is a test to see if a file is a "Directory" or not, but I was wondering if there is an easy way to distinguish "Video" files from "Image" files, or "Text" files, etc.
I cant always rely on the file extension, so I am curios.
any ideas?
I know there is a test to see if a file is a "Directory" or not, but I was wondering if there is an easy way to distinguish "Video" files from "Image" files, or "Text" files, etc.
I cant always rely on the file extension, so I am curios.
any ideas?