public class FileHelper
{
public enum FileExtension
{
JPG = 255216,
GIF = 7173,
BMP = 6677,
PNG = 13780,
COM = 7790,
EXE = 7790,
DLL = 7790,
RAR = 8297,
ZIP = 8075,
XML = 6063,
HTML = 6033,
ASPX = 239187,
CS = 117115,
JS = 119105,
TXT = 210187,
SQL = 255254,
BAT = 64101,
BTSEED = 10056,
RDP = 255254,
PSD = 5666,
PDF = 3780,
CHM = 7384,
LOG = 70105,
REG = 8269,
HLP = 6395,
DOC = 208207,
XLS = 208207,
DOCX = 208207,
XLSX = 208207,
}
public static void CheckType()
{
string path = @"D:\我的文档\My Pictures\logo5.png";
System.IO.FileStream fileStream = new Syste
C#获取真实文件类型
最新推荐文章于 2024-05-15 00:30:00 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)