Computing.Net > Forums > Windows XP > adding new line to start of txt

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

adding new line to start of txt

Reply to Message Icon

Name: ganster
Date: September 17, 2008 at 19:52:08 Pacific
OS: windows
CPU/Ram: any
Product: any
Comment:

hi guys i was wondering if u can add a new line to start of a txt file without removing\deleating any of the other lines in the txt file im trying to do this with batch scripting

example:

blah
test
blah

script edited file

script added new line
blah
test
blah

plz help guys iv bin trying for days and getting nowhere :(



Sponsored Link
Ads by Google

Response Number 1
Name: lurkswithin
Date: September 17, 2008 at 20:27:43 Pacific
Reply:

This is the forum you need to be posting in for work on batch files.

http://www.computing.net/programmin...

Operating Costs = the cost of operating a business
Profits = revenues over and above the operating costs.
Taxes = operating costs mandated by gov.
TaxPayer = what you are called by the gov.


0

Response Number 2
Name: toast (by NoIdea)
Date: September 18, 2008 at 00:38:38 Pacific
Reply:

Are you populating this text file by importing information from another text file? If so
echo. >> whatever.txt.
eg
COPY whatever.txt+another.txt
echo. >> whatever.txt

If it is more than echo a blank line then it's more complicated and you will need to give more information. Over in programming.


0

Response Number 3
Name: Ewen
Date: September 18, 2008 at 15:53:32 Pacific
Reply:

NoIdea... lurkswithin has directed the poster to the proper forum, your answer will more tna likely cause a double posting which is not allowed.

Once I thought I was wrong, now I'm not so sure!


0

Response Number 4
Name: toast (by NoIdea)
Date: September 19, 2008 at 00:49:26 Pacific
Reply:

Sorry People point taken


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Alt Codes not working IE not visible/XP freezin...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Windows XP Forum Home


Sponsored links

Ads by Google


Results for: adding new line to start of txt

adding new line into .ini www.computing.net/answers/windows-xp/adding-new-line-into-ini/177879.html

Add new line between specific two lines www.computing.net/answers/windows-xp/add-new-line-between-specific-two-lines/177892.html

VBScript to change a line of text. www.computing.net/answers/windows-xp/vbscript-to-change-a-line-of-text/177974.html