The LUA 5.1 Reference Manual says:
Certainly, os.getenv('TEMP')..os.tmpname() files are not auto-deleted and must be removed using Disk Cleanup on Temporary files.os.tmpname ()
Returns a string with a file name that can be used for a temporary file. The file must be explicitly opened before its use and explicitly removed when no longer needed.
When possible, you may prefer to use io.tmpfile, which automatically removes the file when the program ends.
But io.tmpfile does NOT allow the file extension to be defined.
This has come to light as a result of working on the Ancestors ... Census Checker and Lookup Missing Census Facts Plugins.
Can anyone suggest the best way of using temporary files that auto-delete.
ID:6791