create .txt file in cmd code example
Example 1: write file using command windows
echo some-text > filename.txt
Example 2: make new file windows cmd
type nul > README.txt
echo some-text > filename.txt
type nul > README.txt