The following example reads information from a file into three listboxes on a form.uses IniFiles;procedure TForm1.FormActivate(Sender: TObject);var AppIni: TIniFile;begin AppIni := TIniFile.Create('win.ini'); AppIni.ReadSections(ListBox1.Items); AppIni.ReadSection('Ports',Listbox2.Items); AppIni.ReadSectionValues('Ports',ListBox3.Items); AppIni.Free;end; [解决办法]