要将一个INI文件的Unicode码表装载到一个数组中去,因为码表有20902个,所以装载时很慢,有没有什么好方法让装载速度快一些?(20分)

  • 主题发起人 kingbenz
  • 开始时间
K

kingbenz

Unregistered / Unconfirmed
GUEST, unregistred user!
要将一个INI文件的Unicode码表装载到一个数组中去,因为码表有20902个,所以装载时很慢,有没有什么好方法让装载速度快一些?
Ini:
0=A
1=B
...

数组:
Unicode:array[0..20901] of String;
 
换个方法试试吧.比如用TStringList
var
List:TStringList;
begin
List;=TStringList.Create;
List.LoadFromFile('c:/aa.ini')

//查找时只要使用List.Values['0']就可以了.
end;
 

Similar threads

S
回复
0
查看
3K
SUNSTONE的Delphi笔记
S
S
回复
0
查看
2K
SUNSTONE的Delphi笔记
S
D
回复
0
查看
897
DelphiTeacher的专栏
D
D
回复
0
查看
2K
DelphiTeacher的专栏
D
D
回复
0
查看
2K
DelphiTeacher的专栏
D
顶部