delphi 读取INI最多可以多少节点?
beginDoMonList:=TIniFile.Create(ExtractFileDir(ParamStr(0))+'/DOMONLIST.ini');sDoMonL...
begin
DoMonList := TIniFile.Create(ExtractFileDir(ParamStr(0)) + '/DOMONLIST.ini');
sDoMonList := TStringList.Create;
try
DoMonList.ReadSections(sDoMonList);
nDoMonList := sDoMonList.Count;
SetLength(arrDoMonList,nDoMonList);
For I := 0 to nDoMonList - 1 do begin
arrDoMonList[I] := DoMonList.ReadString('DOMONLIST' + Inttostr(I),'MON','');
end;
finally
DoMonList.Free;
sDoMonList.Free;
end;
-------------------------以上是代码-------------------
ini中的内容为
[abc1]
...
[abc2]
...
...
[abc2000]
...
sDoMonList.Count读出来的条目 最多就到1250后面的不读了。 展开
DoMonList := TIniFile.Create(ExtractFileDir(ParamStr(0)) + '/DOMONLIST.ini');
sDoMonList := TStringList.Create;
try
DoMonList.ReadSections(sDoMonList);
nDoMonList := sDoMonList.Count;
SetLength(arrDoMonList,nDoMonList);
For I := 0 to nDoMonList - 1 do begin
arrDoMonList[I] := DoMonList.ReadString('DOMONLIST' + Inttostr(I),'MON','');
end;
finally
DoMonList.Free;
sDoMonList.Free;
end;
-------------------------以上是代码-------------------
ini中的内容为
[abc1]
...
[abc2]
...
...
[abc2000]
...
sDoMonList.Count读出来的条目 最多就到1250后面的不读了。 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询