how to make a text file in command prompt 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
Example 3: make text file command line
cat > sample.txt
# Write some text, press Ctrl+D when you are done
Example 4: creating text file in cmd
echo. > location with name