Я написал код:
MnemonicList := TStringList.Create();
{$IFDEF Android}
IniPath := TPath.Combine(TPath.GetDocumentsPath, ADefaultLanguage + '.ini'); { Internal }
{$ENDIF}
{$IFDEF Win32}
IniPath := TPath.Combine(ExtractFilePath(ParamStr(0)), 'Lang\' + ADefaultLanguage + '.ini');
{$ENDIF}
if FileExists(IniPath) then
begin
MemIniFile := TMemIniFile.Create(IniPath);
ShowMessage(IniPath);
MemIniFile.ReadSections(MnemonicList);
ShowMessage(IntToStr(MnemonicList.Count));
end;
Второй результат ShowMessage() дает 4 при запуске в Windows и 0 при запуске на Android... Файл заполняется правильно, а FileExists(IniPath) дает True также на Android. Я также могу открывать файлы на Android и Windows в редакторе. Есть ли отличия от TMemIniFile на Android?
TPath.GetDocumentsPath + PathDelim + 'mysettings.ini'
- person Sentient   schedule 18.02.2014