windows command create text file code example
Example 1: make new file windows cmd
type nul > README.txt
Example 2: create file and write to it cmd
echo some-text > filename.txt
Example 3: make text file command line
cat > sample.txt
# Write some text, press Ctrl+D when you are done
Example 4: how to create files in command line
notepad mynewfile.*insert file extension here*
Example 5: creating text file in cmd
echo. > location with name