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 midstr 返回指定范围内的字符串

Delphi 通过窗口特定标题锁定窗口

Delphi中strtodatetime函数tformatsettings参数的使用

Delphi 超短精简进制转换

Delphi 十六进制数转换十进制数

Delphi 隐藏文件夹

Delphi tdictionary 简单用法

Delphi 的字符及字符串 - char、ansichar、widechar、pchar、pansichar、pwidechar

Delphi 使用钩子函数 - 钩子链和 callnexthookex 的返回值

Delphi 判断文件是否是图像文件

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



打赏

取消

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

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

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

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

评论

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