1)編輯一個config.txt文件,填寫配置系統。
2)有外部加載文件時,安卓發布需要另行指定文件發布目錄位置
比如加載config.txt需要在
首先利用Project->Deployment,打開發布文件窗口,增加要發布的文件。
然后設置文件發布的位置Remote Path,填寫為assets\internal\
3)uses System.IOUtils
在代碼中取得文件:
procedure TForm19.Button1Click(Sender: TObject);
var
p: string;
begin
p := TPath.Combine(TPath.GetDocumentsPath, 'config.txt');
memo1.Lines.LoadFromFile(p);
end;
