how to create a file from DOS

1-go to start >>Run>>
2-write CMD and press enter
3-write the following :
copy con filename.txt         ,and press enter  //filename.txt can be any name you want
4- write the file contents
5- press CTRL+Z and hit enter

Done!