0
How do I write a TXT file to android using Delphi 10 Seatle? I’ve tried that way and only from mistake;
try
file1 := TIniFile.Create(System.IOUtils.TPath.GetDownloadsPath+PathDelim+'postogestorcoletor.ini');
file1.WriteString('postogestorcoletor','testeteste', 'asasasasasas');
file1.Free;
finally
ShowMessage('Erro ao criar arquivo');
end;
Do the operation without Try (error handling) to know which exception is occurring. By the way, on which line is the error occurring?
– Andrey
Searching in Sopt, I found the answer: https://answall.com/a/82504/49822
– Andrey
I took the Try block and shows no error, simply does not create the file.
– Alexandre Vieira