Temporary files, also called temp or tmp files, are created by programs on your computer to hold data while a permanent file is being written or updated. The data from temporary files is transferred to a permanent file when the task is complete or when the program is closed.