Lazarus

Programming => Operating Systems => Android => Topic started by: las on May 15, 2019, 09:11:34 pm

Title: Creating temporary files
Post by: las on May 15, 2019, 09:11:34 pm
Hi!

What is the best way to organize temporary file storage in the LAMW application so that the system knows that they are temporary and can be deleted?
I found recommendations when programming in java. How to do it with LAMW?

File outputDir = context.getCacheDir(); // context being the Activity pointer
File outputFile = File.createTempFile("prefix", "extension", outputDir);

It is also necessary to be able to view a list of temporary files and delete them.