02 2017 档案
摘要:配置文件实际上就是一个XML文件,所以我们可以使用XmlDocument来进行操作。 代码如下: static void Main(string[] args) { XmlDocument xDoc = new XmlDocument(); xDoc.Load("../../App.config")
阅读全文
摘要:static void Main(string[] args) { Directory.CreateDirectory(@"d:\ok"); File.Create(@"d:\ok\abc.txt"); string str = "sve"; FileStream fs = null; try {
阅读全文
摘要:1、引用Microsoft.Office.Interop.Excel.dll 2、引用命名空间、使用别名 [csharp] view plain copy using System.Reflection; using Excel = Microsoft.Office.Interop.Excel; p
阅读全文