码迷,mamicode.com
首页 > 移动开发 > 详细

安卓读写INI文件

时间:2017-08-01 09:48:38      阅读:175      评论:0      收藏:0      [点我收藏+]

标签:bsp   proc   ifile   free   procedure   orm   finally   button   conf   

安卓读写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;

安卓读写INI文件

标签:bsp   proc   ifile   free   procedure   orm   finally   button   conf   

原文地址:http://www.cnblogs.com/hnxxcxg/p/7266824.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!