当前位置:网站首页>ini解析学习文档
ini解析学习文档
2022-06-30 06:09:00 【蓝天⊙白云】
ini解析学习文档
一.什么是Ini
ini文件是Initialization File的缩写,即初始化文件,通常存放的是一个程序的初始化信息,是Windows的系统配置文件所采用的存储格式,统管windows的各项配置。ini文件的后缀名不一定是.ini,也可以是.cfg、.conf或者是.tx*。
二.ini文件格式&语法规范
ini文件由若干个节(section)组成,每个section由若干键(Key)组成,每个Key可以赋相应的值。读写ini文件实际上就是读写某个的section中相应的Key的值,而这只要借助几个函数即可完成。
参数(Parameter):ini文件包含的最基本元素是参数,参数包含参数名(name)和参数值(value),格式如下:name=value节(section):所有的参数都是以节为单位结合在一起。节名称独占一行,在节声明后的所有的参数都属于该节。节没有结束标识符,一个section的开始就是上一个section的结束。格式如下:[section]注释(comments):注释用分号;表示,放在注释之前,;号后直到行尾均为注释。示例如下:;i wish nothing but the best for you文件实例
[owner] name=WU yanzu organization=The United Nations
[UserConfig]
OpenDownloadFileAtOnec=Y
WindowStyle=DevExpress Dark Style
[Language]
Language=CHS
[AutoUpdate]
Version=2.10 ;last version:2.08
边栏推荐
- 我做功能测试这么多年的心得
- InputStream to inputstreamsource
- UE4_ Editor development: highlight the UI making method according to the assets dragged by the mouse (1)
- Talking about the struct of go
- 超简单 STM32 RTC闹钟 时钟配置
- There is a group of students' score {99, 85, 82, 63, 60}. To add a student's score, insert it into the score sequence and keep the descending order
- Turn off automatic outlining in Visual Studio - turning off automatic outlining in Visual Studio
- PC viewing WiFi password
- Gestion des utilisateurs de la base de données MySQL
- 880. decoded string at index
猜你喜欢

MySQL log management, data backup and recovery

inno setup 最简单的自定义界面效果

动态规划--怪盗基德的滑翔翼

MySQL高级SQL语句

Zibll sub theme v6.4.1wordpress open source download_ Crack the original / use it directly / no tutorial required

Create priority queue

Completabilefuture: from understanding to mastering, here are all you want to know

MySQL存储系统

Detailed description of methods in the interface

SparseArray
随机推荐
反編譯正常回編譯出現問題自己解决辦法
Ultra simple STM32 RTC alarm clock configuration
DOM (document object model) document XML file object model
Résoudre le problème de décompiler la compilation normale
MySQL 索引
ES6 arrow function
Base64详解:玩转图片Base64编码
从零开发 stylelint规则(插件)
电脑查看WiFi使用密码
CompletableFuture从了解到精通,你想知道的这里都有
MySQL index
One sentence introduction to Trojan horse
PHP knowledge points
Variable parameters of go
ES6解构赋值
Today, Ali came out with 35K. It's really sandpaper that wiped my ass. it showed me my hand
Multithreading advanced level
Go common judgments
SparseArray
inno setup 最简单的自定义界面效果