本文整理自网络,侵删。
function GeFileName(const AFileName: string): string;begin{$IFDEF ANDROID} Result := TPath.GetTempPath + '/' + AFileName;{$ELSE} {$IFDEF IOS} Result := TPath.GetHomePath + '/Documents/' + AFileName; {$ELSE} Result := AFileName; {$ENDIF}{$ENDIF}end;
相关阅读 >>
更多相关阅读请进入《Delphi》频道 >>