WPF中读写config配置文件
来源:互联网 发布:虚拟机安装ubuntu教程 编辑:程序博客网 时间:2024/05/18 03:47
在WPF中读写config配置文件,很简单。
1. 在你的工程中,添加app.config文件。文件的内容默认为:
- <?xml version="1.0" encoding="utf-8" ?>
- <configuration>
- </configuration>
- <?xml version="1.0" encoding="utf-8" ?>
- <configuration>
- <appSettings>
- <add key="Path" value="SFSFSDSDS"/>
- <add key="NAME" value="FUCk"/>
- </appSettings>
- </configuration>
- using System.Configuration;
- string str = ConfigurationManager.AppSettings["Path"];
- Configuration cfa = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);
- cfa.AppSettings.Settings["NAME"].Value = "WANGLICHAO";
- cfa.Save();
是不是有点太基础了!
- WPF中读写config配置文件
- 在WPF中读写config配置文件
- 在WPF中读写config配置文件
- 在WPF中读写config配置文件
- WPF中读写app.config操作
- WPF读写config配置文件及XML数据的学习
- c#,WinForm中读写配置文件App.config
- C#中动态读写App.config配置文件
- 读写配置文件app.config
- 读写配置文件app.config
- 读写配置文件app.config
- 读写配置文件app.config
- 读写配置文件app.config
- 读写配置文件app.config
- 读写配置文件app.config
- 读写config,xml配置文件
- C#读写config配置文件
- C#读写config配置文件
- 【文摘】没有学位,他通过以下四步进入Google
- Linux 驱动程序入门(hello world)
- Linux 内核模块编译(hello.c)
- mac下R.java不能自动生成
- 一个完整的Linux测试模块驱动程序
- WPF中读写config配置文件
- who命令
- linux 设备驱动笔记 - 字符设备驱动
- 深入浅出Linux设备驱动之字符设备驱动程序
- GCC 使用详解
- 程序员面试常见面试题之数据库知识篇
- Vi 编辑器的基本使用方法
- 【文摘】ABC(Always Be Coding)
- Linux bootloader 编写方法