您的位置:首页 > 其它

一个用于读写配置文件的类

2006-07-03 16:18 543 查看
该类适应读写如下格式的.xml,.config文档
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!--This is a config file ,writer by furenjun-->
<configuration>
<appSettings>
<add key="SqlStr0" value="0" />
<add key="SqlStr1" value="1" />
<add key="2006-7-3 16:05:08" value="1" />
</appSettings>
</configuration>

using System;
using System.Configuration ;
using System.Reflection ;
using System.Xml;
using System.IO;
using System.Collections.Specialized;
using System.Collections;
using System.Data ;
using System.Diagnostics;
using System.Windows.Forms;
namespace 读写配置文件

使用:

MrfuRWXmlFile mrfurw=new MrfuRWXmlFile();
private void button_Create_Click(object sender, System.EventArgs e)

private void button_read_Click(object sender, System.EventArgs e)

private void button_Update_Click(object sender, System.EventArgs e)

int i=0;
private void button_Add_Click(object sender, System.EventArgs e)

private void button1_Click(object sender, System.EventArgs e)

private void button2_Click(object sender, System.EventArgs e)
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: