delphi 安卓读写INI文件


本文整理自网络,侵删。

 
安卓读写INI文件

uses System.IoUtils

procedure TForm1.Button1Click(Sender: TObject);
var
IniFile:TIniFile;
Count:Integer;
begin

try
IniFile:=TIniFile.Create(TPath.GetHomePath+'\test.ini');
Count:=IniFile.ReadInteger('Config','Count',0);
Count:=Count+1;
IniFile.WriteString('sec', 'TEL',' ');
IniFile.WriteInteger('Config','Count',Count);
finally
FreeAndNil(IniFile);
end;
end;

相关阅读 >>

Delphi手动创建dataset并插入值

Delphi读取android短信信息

Delphi android控制睡眠

Delphi 2009 之 tstringbuilder 类[6]: equals

Delphi memo 控件光标定位

Delphi xe5 将Delphi code从winos 迁移到ios与android

Delphi 利用csidl打开特殊文件夹

Delphi 10.3.x与android 10兼容性的问题

Delphi 判断目录是否存在,不存在则创建目录并打开,存在则直接打开

Delphi中提取网址链接分路径

更多相关阅读请进入《Delphi》频道 >>



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...