C# 操作配置文件
2024-09-02 03:59:15
1.配置文件app.config的书写:
string mdbPath = ConfigurationManager.AppSettings["mdbPath"].ToString();
2.C#读取配置文件的代码:
<?xml version="1.0"?>
<configuration>
<startup> <supportedRuntime version="v2.0.50727"/></startup>
<appSettings>
<add key="mdbPath" value="F:/cc/peopleManager.mdb"></add>
</appSettings>
</configuration>
最新文章
- Expression2Sql的一些语法更新
- session失效
- Spark BlockManager的通信及内存占用分析(源码阅读九)
- Python算法-冒泡排序
- Java Web 三层架构详解
- Linux下安装与使用本地的perl模块
- ccrendertexture to uiimage
- iOS 学习笔记 十三 (2015.04.15)采用第三方库,实现ios录音转为amr
- Java设计模式之简单工厂设计模式
- hihocoder 1049 后序遍历
- Linux 服务器如何修改 DNS
- 【行为型】Memento模式
- NET Core 环境搭建和命令行CLI入门
- Ubuntu 14.04下Redis安装报错:“You need tcl 8.5 or newer in order to run the Redis test”问题解决
- React从入门到放弃之前奏(3):Redux简介
- node vue 项目部署问题汇总
- URLConnection和HttpURLConnection
- Phoenix 5.0 hbase 2.0 org.apache.hadoop.security.authentication.util.KerberosUtil.hasKerberosKeyTab
- HTML5实现微信聊天气泡效果
- CSS之Medial Queries的另一用法:实现IE hack的方法