Skip to content

Instantly share code, notes, and snippets.

@Daniel-Wiedemann
Last active August 29, 2015 14:18
Show Gist options
  • Save Daniel-Wiedemann/47cb35e9f2b6baf6c1fc to your computer and use it in GitHub Desktop.
Save Daniel-Wiedemann/47cb35e9f2b6baf6c1fc to your computer and use it in GitHub Desktop.
Create empty text file
With echo command it is possible to create an empty text file.
E.g.
C:\ echo > test.txt
or
C:\ echo > app.js
Add text
C:\ echo Mein Text > text.txt
">" overwrite the text file
">>" append the text to the file
or
C:\ copy con test.txt
Mein Text
(mit CTRL+C) beenden.
or
(append text)
C:\ copy test.txt + con
Mein Text
(mit CTRL+C) beenden
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment