怎么打开一个hex的文本文件? 什么意思,都hex了怎么有事文本文件?? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 9494,呵呵:using System.IO;private static byte[] BinaryAdd(ResourceWriter rw,string itemnameOf,string filenameOf) { try{ FileStream fs = new FileStream(filenameOf,FileMode.Open, FileAccess.Read); int byteLength = (int)fs.Length; byte[] wf = new byte[byteLength]; fs.Read(wf,0,byteLength); fs.Close(); return wf; }catch{}} 忘记清理了,cc 完整如下using System.IO;private static byte[] BinaryAdd(string filenameOf) { try{ FileStream fs = new FileStream(filenameOf,FileMode.Open, FileAccess.Read); int byteLength = (int)fs.Length; byte[] wf = new byte[byteLength]; fs.Read(wf,0,byteLength); fs.Close(); return wf; }catch{}} 对象能在运行时添加属性吗? 怎样用js为dropdownlist赋值 正则表达式请教 求助:fastreport如何合并相同的行?分不多了!!请大家帮忙下,新年快乐 请问这个要用什么控件?速度!!!! Table td=(Table)Session["td"];中的(table)作用是什么? vs.net2003与vc6.0是否可以共存(傻瓜问题) 关于C#中操作Word的问题? 求教一个水晶报表的部署问题! IIS问题 求教 用OleDbConnection来连接ORACLE数据库,如何写连接串? web service 的调用问题?
try{
FileStream fs = new FileStream(filenameOf,FileMode.Open, FileAccess.Read);
int byteLength = (int)fs.Length;
byte[] wf = new byte[byteLength];
fs.Read(wf,0,byteLength);
fs.Close();
return wf;
}catch{}
}
try{
FileStream fs = new FileStream(filenameOf,FileMode.Open, FileAccess.Read);
int byteLength = (int)fs.Length;
byte[] wf = new byte[byteLength];
fs.Read(wf,0,byteLength);
fs.Close();
return wf;
}catch{}
}