먼저 ueses에 inifiles를 추가하고요.
var
initest:tinifile;
..
begin
initest := tinifile.create('initest.ini');
// initest.ini화일은 자동적으로 c:\windows 폴더에 생성됩니다.
initest.writestring('system','port','com1');
initest.writestring('system','speed','56K');
// 위에서 system은 섹션이고 port,speed는 지정변수이며, com1,56K는 해당
값입니다. 예를들어 작성했으니 섹션 또는 값은 변경하셔도 됩니다.
// 숫자형은 writeinteger, 논리형은 writebool을 선언하면 되죠.
ini화일에서 값을 읽어려면 readstring을 쓰시면 됩니다.
initest.free;
end;
|