資源簡介
C# 操作xml文件(創建、修改、保存等編輯操作)
代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.ComponentModel;
using?System.Data;
using?System.Drawing;
using?System.Linq;
using?System.Text;
using?System.Windows.Forms;
using?System.IO;
using?System.Runtime.InteropServices;
using?System.Collections;
using?System.xml;
namespace?FileOperate
{
????public?partial?class?Form1?:?Form
????{
????????public?Form1()
????????{
????????????dtbfinal.Columns.Add(“id“?typeof(string));
????????????InitializeComponent();
????????}
????????#region?變量聲明區
????????public?string?str?=?““;//該變量保存INI文件所在的具體物理位置
????????public?string?strOne?=?““;
????????string?filePath?=?““;//文件路徑
????????OpenFileDialog?ofd?=?new?OpenFileDialog();//對話框
????????SaveFileDialog?save?=?new?SaveFileDialog();
????????DataTable?dtb?=?new?
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????104??2019-11-28?18:54??操作xm
?????文件????????393??2019-11-28?18:55??操作xm
?????文件??????14848??2019-11-28?19:22??操作xm
?????文件??????30208??2019-11-28?19:22??操作xm
?????文件??????11608??2019-11-28?19:13??操作xm
?????文件???????5558??2019-11-28?19:11??操作xm
?????文件????????478??2019-11-28?19:11??操作xm
?????文件??????10290??2019-11-28?19:18??操作xm
?????文件???????6373??2019-11-28?19:18??操作xm
?????文件???????5814??2019-11-28?19:18??操作xm
?????文件????????332??2019-11-28?19:08??操作xm
?????文件???????1365??2019-11-28?19:05??操作xm
?????文件???????6204??2019-11-28?19:22??操作xm
?????文件????????891??2019-11-28?19:22??操作xm
?????文件????????975??2019-11-28?19:22??操作xm
?????文件??????14848??2019-11-28?19:22??操作xm
?????文件????????180??2019-11-28?19:22??操作xm
?????文件??????30208??2019-11-28?19:22??操作xm
?????文件????????180??2019-11-28?19:22??操作xm
?????文件???????1597??2019-11-28?18:58??操作xm
?????文件????????975??2019-11-28?18:55??操作xm
?????文件???????4608??2019-11-28?19:05??操作xm
?????文件????????492??2019-11-28?19:09??操作xm
?????文件???????1354??2019-11-28?19:09??操作xm
?????文件???????2862??2019-11-28?19:01??操作xm
?????文件???????5612??2010-08-18?17:51??操作xm
?????文件???????1111??2019-11-28?19:01??操作xm
?????文件????????249??2009-01-06?09:19??操作xm
?????文件????????926??2019-11-28?19:00??操作xm
????..A..H.?????23040??2019-11-28?19:23??操作xm
............此處省略12個文件信息
評論
共有 條評論