本文整理自网络,侵删。
安卓读写INI文件
uses System.IoUtils
procedure TForm1.Button1Click(Sender: TObject);varIniFile:TIniFile;Count:Integer;begin
tryIniFile:=TIniFile.Create(TPath.GetHomePath+'\test.ini');Count:=IniFile.ReadInteger('Config','Count',0);Count:=Count+1;IniFile.WriteString('sec', 'TEL',' ');IniFile.WriteInteger('Config','Count',Count);finallyFreeAndNil(IniFile);end;end;
相关阅读 >>
Delphi 2009 之 tstringbuilder 类[6]: equals
Delphi xe5 将Delphi code从winos 迁移到ios与android
Delphi 10.3.x与android 10兼容性的问题
Delphi 判断目录是否存在,不存在则创建目录并打开,存在则直接打开
更多相关阅读请进入《Delphi》频道 >>