Generate temp file.