: Open Notepad , type your text, and go to File > Save As .
If you are developing a script to generate and download text on the fly, here are common methods: Download File pua6ftmin2or
header('Content-Type: text/plain'); header('Content-Disposition: attachment; filename="download.txt"'); echo "This text will be in the downloaded file."; Use code with caution. Copied to clipboard Manual Creation : Open Notepad , type your text, and go to File > Save As