Files
playbook/skills/tsl-api-reference/references/codegen/builtin/object/tinifile.md
T
csh 9010829c6d feat(tsl-api-reference): expand and reorganize api catalog
Flatten builtin pages, add third-party and platform scopes, and import financial and data warehouse references.

Keep the existing generated index without rebuilding after signature normalization.
2026-08-10 18:26:24 +08:00

6.6 KiB

Object - TIniFile INI 文件

TIniFile

声明:class

TIniFile 内置对象

create(alias, file_name)

声明:function

创建 TIniFile 实例

可见性:public

参数 类型 说明
alias string 目录别名
file_name string INI文件名

deleteKey(section, ident)

声明:function

删除指定的键

可见性:public

参数 类型 说明
section string 字符串类型,要删除的键所在章节名
ident string 字符串类型,要删除的键名

返回:any

eraseSection(section)

声明:function

删除章节

可见性:public

参数 类型 说明
section string 字符串类型,要删除的章节名

返回:any

readBinaryStream(section, ident, value)

声明:function

读INI内容

可见性:public

参数 类型 说明
section string 字符串类型,节名
ident string 字符串类型,键值名
value TStream TStream类型,存贮读取的内容

返回:integer

readBoolean(section, ident, default)

声明:function

读INI内容

可见性:public

参数 类型 说明
section string 字符串类型,节名
ident string 字符串类型,键值名
default boolean Boolean类型,当不存在的时候的默认值

返回:boolean

readDate(section, ident, default)

声明:function

读INI内容

可见性:public

参数 类型 说明
section string 字符串类型,节名
ident string 字符串类型,键值名
default TDate 日期类型,当不存在的时候的默认值

返回:TDate

readDateTime(section, ident, default)

声明:function

读INI内容

可见性:public

参数 类型 说明
section string 字符串类型,节名
ident string 字符串类型,键值名
default datetime 日期时间类型,当不存在的时候的默认值

返回:datetime

readFloat(section, ident, default)

声明:function

读INI内容

可见性:public

参数 类型 说明
section string 字符串类型,节名
ident string 字符串类型,键值名
default float 实数类型,当不存在的时候的默认值

返回:float

readInteger(section, ident, default)

声明:function

读INI内容

可见性:public

参数 类型 说明
section string 字符串类型,节名
ident string 字符串类型,键值名
default integer 整数类型,当不存在的时候的默认值

返回:integer

readSection(section, strings)

声明:function

读INI章节的所有键名

可见性:public

参数 类型 说明
section string 字符串类型,节名
strings TStringList TStringList类型,用于存贮章节里的键名

返回:any

readSections(strings)

声明:function

读INI章节的所有章节名

可见性:public

参数 类型 说明
strings TStringList TStringList类型,用于存贮章名

返回:any

readSectionValues(section, strings)

声明:function

读INI章节的所有内容

可见性:public

参数 类型 说明
section string 字符串类型,节名
strings TStringList TStringList类型,用于存贮章节里的内容

返回:any

readString(section, ident, default)

声明:function

读INI内容

可见性:public

参数 类型 说明
section string 字符串类型,节名
ident string 字符串类型,键值名
default string 字符串类型,当不存在的时候的默认值

返回:string

sectionExists(section)

声明:function

是否存在指定章节名

可见性:public

参数 类型 说明
section string 字符串类型,节名

返回:boolean

valueExists(section, ident)

声明:function

是否存在指定的键

可见性:public

参数 类型 说明
section string 字符串类型,要查找的键所在章节名
ident string 字符串类型,要查找的键名

返回:boolean

writeBinaryStream(section, ident, value)

声明:function

写INI内容

可见性:public

参数 类型 说明
section string 字符串类型,节名
ident string 字符串类型,键值名
value TStream TStream类型,值内容

返回:any

writeBoolean(section, ident, value)

声明:function

写INI内容

可见性:public

参数 类型 说明
section string 字符串类型,节名
ident string 字符串类型,键值名
value boolean Boolean类型,值内容

返回:any

writeDate(section, ident, value)

声明:function

写INI内容

可见性:public

参数 类型 说明
section string 字符串类型,节名
ident string 字符串类型,键值名
value TDate 日期类型,值内容

返回:any

writeDateTime(section, ident, value)

声明:function

写INI内容

可见性:public

参数 类型 说明
section string 字符串类型,节名
ident string 字符串类型,键值名
value datetime 日期时间类型,值内容

返回:any

writeFloat(section, ident, value)

声明:function

写INI内容

可见性:public

参数 类型 说明
section string 字符串类型,节名
ident string 字符串类型,键值名
value float 实数类型,值内容

返回:any

writeInteger(section, ident, value)

声明:function

写INI内容

可见性:public

参数 类型 说明
section string 字符串类型,节名
ident string 字符串类型,键值名
value integer 整数类型,值内容

返回:any

writeString(section, ident, value)

声明:function

写INI内容

可见性:public

参数 类型 说明
section string 字符串类型,节名
ident string 字符串类型,键值名
value string 字符串类型,值内容

返回:any