110,530
社区成员
发帖
与我相关
我的任务
分享
byte[] buffer1 = new byte[4];
using (System.IO.BinaryReader br = new System.IO.BinaryReader(new System.IO.FileStream(path, System.IO.FileMode.Open, System.IO.FileAccess.Read)))
{
br.Read(buffer1, 0, 4);
}
///
int br = new System.IO.BinaryReader(new System.IO.FileStream(path, System.IO.FileMode.Open, System.IO.FileAccess.Read)).ReadByte();
///
///FileStream的Read也是这样
System.IO.FileInfo f = new System.IO.FileInfo("C:\\123.doc");
//获取文件扩展名
MessageBox.Show(f.Extension);