安卓读写INI文件
2024-08-28 05:07:39
安卓读写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;
最新文章
- Unable to load native-hadoop library for your platform... using builtin-Java classes where applicable
- Yii2 打印sql语句和批量插入数据
- linux全部命令
- 【转载】标准输入输出重定向(Visual C++)
- 215. Kth Largest Element in an Array
- ORA-01810: 格式代码出现两次
- 【BZOJ】【1028】【JSOI2007】麻将
- javascript笔记——闭包
- 图层类(CCLayer)
- 使用PullToRefresh实现下拉刷新和上拉加载
- Linux常见面试题
- 解决IE6下DIV无法实现1px高度问题
- JavaScript 实现Map
- AJAX 中JSON 和JSONP 的区别 以及请求原理
- C++ 脑筋急转弯
- 在linux 上安装ansible
- Python之Requests的安装与基本使用
- java Integer.valueOf 和 Integer.parseInt 和 new Integer区别及注意事项
- MySQL自定义函数和存储过程的区别:
- 如何用万用表判断一个12V蓄电池是否没电