分类标签归档:C#

【置顶】C# 使用配置文件的一些记录


C# 读写配置文件

1. 引用】中添加【System.Configuration】 2. 类文件引用

using System.Configuration;

3. 使用 1. 读取配置文件

//读取路径上的配置文件
string path=Application.StartupPath+"\\myConf.config";
Configuration conf =C...

Read more