等号左边的用
ReadSection方法

解决方案 »

  1.   

    str:=myinifile.Readstring('ABC','abc','000');
      

  2.   

    var
      tf:tinifile;
      ts:TStrings;
    begin
      ts := tstringlist.create;
      tf := TIniFile.Create('D:\ABC');
      tf.ReadSection('ABC',ts);
      ...
      ...end;
      

  3.   

    var
      ts: TString;
    begin
      …………
      inifile.ReadSection('ABC',ts);
      …………
    end;
    结果存在ts中,要读出的话
    for i := 0 to ts.items.count - 1 do
      showmessage(ts.items[i]);
      

  4.   

    我使用ReadSection方法不行,我不知道这个方法包含在哪个头文件中?