一个用于读写配置文件的类
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)
<?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)
相关文章推荐
- C# 读写XML文件,用于配置文件
- XConfigGen——这是一个基于nodejs,用于生成不同环境项目配置文件的小工具
- 用于读写 INI 配置文件的 C++ 类
- 一个用C#编写的自动读写配置文件的开源组件
- Python 读写一个配置文件的实例分解 (一)
- 易语言-循环读取配置文件,用于更新类的一个更新思路和想法
- SE高阶(1):用于读写配置文件的特殊Map——Properties类
- 实现快速读写配置文件的内容,可以用于读取*.exe.config文件或者Web.Config文件的内容,或者可以读取指定文件的配置项.
- 一个用C#编写的自动读写配置文件的开源组件
- 一个用C#编写的自动读写配置文件的开源组件
- Python 读写一个配置文件的实例分解 (二)
- 一个对ini配置文件读写的类
- bcb 读写ini 配置文件的一个例子
- 一个用C#编写的自动读写配置文件的开源组件
- 一个用于读取应用程序配置文件(*.ini)的类
- 记录一个python的configobj读写ini配置文件的链接
- C# XML配置文件读写类(用于程序配置保存)
- C# XML配置文件读写类(用于程序配置保存)
- 以前vs03项目中用到一个类:读写config文件配置信息
- 一个用C#编写的自动读写配置文件的开源组件--V1.0.2版本