Recent

Author Topic: Creating temporary files  (Read 861 times)

las

  • New Member
  • *
  • Posts: 26
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.

 

TinyPortal © 2005-2018