- Open Command Prompt (Start > Run > Type “cmd”)
- Type copy con <filename>.txt
- Type the contents of the .txt file. You can change line by normally press Enter
- To save your file, press Ctrl + Z then Enter
Now, you can open <filename>.txt with notepad, and the contents will be the same as you type in command line.
Here’s the screenshot
That’s it. Hope it helps 🙂