|
파일 안에
[car]
avante = 1
sonata = 2
이렇게 되있다면
TIniFile * Test = new TInifile("C:\\My\\test.ini");
TStringList* SecList = new TStringList;
TStringList* ValList = new TStringList;
Test->ReadSections(SecList);
Test->ReadSectionValues("car", ValList);
for(int j=0; j < ValList->Count; j++)
{
if( ???? )
{
???????
break;
}else {
???????
Test->WriteString("car", "matiz",3 );
}
}
그래서 하고 싶은게 car섹션안에 벨류값 카운터 만큼 검색하면서 matiz를 넣고 싶은데요
만약 matiz가 없다면 입력하고 matiz가 있다면 그냥 빠져나오게끔 해주고 싶은데 if문 안에 어떤 조건식이 들어가야
하는지 모르겠어요.
|