; 在桌面的 test.ini 写入数据,不存在文件时会自动创建
;ini已exe后缀命名也可正常读取
;@ScriptDir @DesktopDir脚本路与桌面
IniWrite (@ScriptDir & "\test.ini" , "setup" , "test" , "haha" )
; 读取刚才写入的数据
$a1 = IniRead ( @ScriptDir & "\test.ini" , "setup" , "test" , "" )
; 读取一个不存在的键名的数据
$a2 = IniRead ( @ScriptDir & "\test.ini" , "setup" , "test2" , " 默认 " )
MsgBox ( 0 , "" , "test 键值: " & $a1 & @LF & "test2 键值: " & $a2)
au3编写记录2_读写配置
于 2023-09-17 19:08:10 首次发布