Returns a handle for a temporary file. This file is opened in update mode and it is automatically removed when the program ends.