本文整理自网络,侵删。
1)编辑一个config.txt文件,填写配置系统。
2)有外部加载文件时,安卓发布需要另行指定文件发布目录位置
比如加载config.txt需要在
首先利用Project->Deployment,打开发布文件窗口,增加要发布的文件。然后设置文件发布的位置Remote Path,填写为assets\internal\
3)uses System.IOUtils
在代码中取得文件:procedure TForm19.Button1Click(Sender: TObject);varp: string;beginp := TPath.Combine(TPath.GetDocumentsPath, 'config.txt');memo1.Lines.LoadFromFile(p);end;
相关阅读 >>
Delphi controls 属性与继承 tshape 类的小练习
Delphi getrandompassword 生成随机密码
Delphi firedac 下的 sqlite [8] - 自定义函数
更多相关阅读请进入《Delphi》频道 >>