Batch file to insert text into a file

CalvinHobbes

Diamond Member
Feb 27, 2004
3,524
0
0
I have a command that will insert/append text into a text file. What I wanted to do was find a way to insert a line feed BEFORE I append the new text in the file. Is this possible from the command line?

I'm using "echo inserted_text>>file.txt" to insert text into my text file.
 

CalvinHobbes

Diamond Member
Feb 27, 2004
3,524
0
0
That works fine. I was also able to use "echo. inserted_text>>file.txt"
That puts a space before the inserted text which also works for my needs.