//初始化文件的默認路徑 log := Tinifile.Create(gPath + 'log.ini'); try edt2.Text := ''; edt2.Text := log.ReadString('imgpath', 'xsddpath', ''); finally log.Free; end;file