由文件地址获取文件流 如文件C:\\test.txt 对应的流是mystream现在只知道有文件C:\\test.txt,怎么么获取他的流 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 System.IO.FileStream fs = new System.IO.FileStream("C:\\test.txt", System.IO.FileMode.Open); private byte[] StreamFile(string filename){FileStream fs = new FileStream(filename, FileMode.Open, FileAccess.Read);byte[] myFile = new byte[fs.Length];Convert.ToInt32(fs.Length));return myFile;} 我的意思是文件C:\\test.txt所对应的流已经打开了,只是我现在不知道这个流是什么。现在如何获取这个流 关于数组的问题 主窗体和子窗体交互 100 分求救ASP.NET 2.0上传大文件代码!快来看看拉 insert 时image字段里的数据部分丢失,如何解决? 菜鸟问题!!!!! 谁能帮帮小弟配置CVS连接VS 按钮事件问题 有熟悉Orbiter 的人吗,请联系我 我的邮箱是 [email protected] Oracle.DataAccess 无法加载 DLL (OraOps10.dll)? VS查询生成器中想要引用同一Form下的Combobox值作参数 求救各位大虾,数据转换的问题 关于使用Decorator模式的效率问题。
System.IO.FileStream fs = new System.IO.FileStream("C:\\test.txt", System.IO.FileMode.Open);
{FileStream fs = new FileStream(filename, FileMode.Open, FileAccess.Read);byte[] myFile = new byte[fs.Length];Convert.ToInt32(fs.Length));return myFile;}