mwbr.net
当前位置:首页 >> FilEStrEAm myFs=nEw FilEStrEAm(pAth,FilEMoDE.Cr... >>

FilEStrEAm myFs=nEw FilEStrEAm(pAth,FilEMoDE.Cr...

using (FileStream fs = new FileStream(Server.MapPath("RecommendConfigXML.xml"), FileMode.Create)) { StreamWriter sw = new StreamWriter(fs,System.Text.Encoding.UTF8); sw.Write(xmlInfo); sw.Close(); }

StreamReader srMyFile = new StreamReader (fsMyFile); 应该是这个, 你这是什么书,可以扔掉了

string myUrl = Environment.CurrentDirectory + "\\" + imageName; FileStream fs = new FileStream(myUrl, FileMode.OpenOrCreate,FileAccess.Write); Binary...

MyFs = new FileStream(Environment.ExpandEnvironmentVariables("%windir%\\system32\\taskmgr.exe"), FileMode.Open); byte[] Mybyte = new byte[(int)My...

FileStream MyFs = new FileStream(Environment.ExpandEnvironmentVariables("%windir%\\system32\\taskmgr.exe"),FileMode.Open);byte[] Mybyte = new byte[(...

应该还在缓冲区里. 如果没记错的话.需要调用 fs.Write(myByte, 0, myByte.Length); fs.Flush();//加载Write后面,从缓冲区中向文件中写入数据 最后再调用 fs.Close(); 关闭流..养成一个良好的习惯....

fsMyfile应该是Myfile的一个实例啊......你什么都没说清楚,怎么知道啊

网站首页 | 网站地图
All rights reserved Powered by www.mwbr.net
copyright ©right 2010-2021。
内容来自网络,如有侵犯请联系客服。zhit325@qq.com