2007年6月18日
摘要: C#追加文件 StreamWriter sw = File.AppendText(Server.MapPath(".")+"\\myText.txt"); sw.WriteLine("追逐理想"); sw.WriteLine("kzlll"); sw.WriteLine(".NET笔记"); sw.Flush(); sw.Close(); C#拷贝文件 string OrignFile,NewFile; OrignFile = Server.MapPath(".")+"\\myText.txt"; NewFile = Server.MapPath(".")+"\\myTextCopy.txt"; File.Copy(OrignFile,NewFile,true); C#删除文件 string delFile = Server.MapPath(".")+"\\myTextCopy.txt"; File.Delete(delFile); 阅读全文
posted @ 2007-06-18 15:01 小柯 阅读(1819) 评论(5) 推荐(0) 编辑