目录
VINI.cs是用于对INI文件进行读写的类。
使用文件路径初始化类
Parameters
filepath [string]
目标INI文件的路径
Exceptions
None
Notice
不保证目标文件一定可以打开
Property Value
[string]
目标INI文件的路径
Property Value
[boolean]
true - 目标文件存在
false - 目标文件不存在
Property Value
[string]
当找不到目标键值时返回的默认字符串
设置目标文件路径
Parameters
path [string]
目标INI文件路径
Returns
[bool]
true - 目标文件存在
false - 目标文件不存在
Notices
输入相对路径,已自动加入 “./”
读取一个键值
Parameter
· Section [string]
节名
· Key [string]
键名
Returns
[string]
读取到的键值
Exceptions
当未设置文件路径时
Notices
如果读取不到对应的键值,返回 VINI.DefaultText
Parameters
· Section [string]
节名
· Key [string]
键名
· Value [string]
写入的值
Returns
[boolean]
true - 写入成功
false - 写入失败
Exceptions
当未设置文件路径时
原文:https://www.cnblogs.com/velscode/p/10353783.html