Recent

Author Topic: Creating temporary files  (Read 213 times)

las

  • New Member
  • *
  • Posts: 25
Creating temporary files
« 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.