[AHK v2] ini 파일 사용하기 (iniWrite, iniRead, iniDelete)
by HibiscusT2025. 2. 23.
/*
IniWrite : ini 파일 쓰기
IniDelete : ini 파일 삭제하기
IniRead : ini 파일 읽기
*/
inifilepath := A_ScriptDir . "\test.ini"
; IniWrite(쓸 내용, ini파일 경로, 섹션, 키)
; 키 있으면 큐 형태로 저장 / 키 없으면 스택 형태로 저장
IniWrite("value1", inifilepath, "section1" , "key1")
IniWrite("value2", inifilepath, "section1" , "key2")
IniWrite("value3", inifilepath, "section2")
IniWrite("value4", inifilepath, "section2")
; IniWrite("value5", inifilepath) ; 섹션 없으면 error