简介
想写一个登录注册的demo,但是以前的demo数据都写在程序里面,每一关掉程序数据就没保存住。。
于是想着写到配置文件里好了
Python自身提供了一个Module – configparser,来进行对配置文件的读写
Configuration file parser.
A configuration file consists of sections, lead by a “[section]” header,
and followed by “name: value” entrie
本文实例讲述了C#实现读写ini文件类。分享给大家供大家参考。具体如下:
这个C#类封装了对INI配置文件进行操作所需的各种函数,包括读取键值、读取键值、删除段落等
using System;
using System.Runtime.InteropServices;
using System.Text;
namespace DotNet.Utilities
{
///
/// INI文件读写类。
///
public class INIFile
{
publi