Appending to a text file with command prompt

Soldato
Joined
1 Mar 2003
Posts
5,508
Location
Cotham, Bristol
Hi folks, is there a way of appending to a text file with command prompt without inserting a carriage return?

At the moment it's inserting a carriage return and a line feed. Whereas all I want is a line feed.

Here's some sample code i'm using

Code:
echo Hello from line 1 > text.txt
echo Hello from line 2 >> text.txt

Any help? :)
 
Back
Top Bottom