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 html转义

Delphi 蜂鸣器发声

Delphi textfile utf8编码读写

Delphi窗体显示echarts图表

最简单的Delphi驱动结束进程

Delphi xe2 - 实现主窗口在任务栏上不显示

Delphi2007在win7系统下的日期问题

Delphi 利用http的post方法做个在线翻译的小工

Delphi根据url获取缓存文件的方法

Delphi安装*.pas扩展名的控件

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



打赏

取消

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

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

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

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

评论

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