It's a .tmp file because your computer has dumped it in your temp folder so you can view it. Is the content of it all gibberish and unknown characters? If so, then it's probably a binary file (most likely a program meant to infect you). Either way, you'd only be infected if the binary file was executed. Opening the file with notepad will not execute it.