add text from one file to the end of another

August 30, 2010 at 07:02:46
Specs: Windows XP
I have two text files aaa.txt and bbb.txt

I want all the information from aaa.txt to the end of bbb.txt

or

adding a paragraph to bbb.txt at the end of the file.

please create a batch program for that.


See More: add text from one file to the end of another

Report •


#1
August 30, 2010 at 08:44:39
>> please create a batch program for that.

No, i won't. Your task encompass the very basics of file i/o. With a little research on the net about using DOS (cmd.exe) commands you should be able to do that on your own. Or search this forum.

GNU win32 packages | Gawk


Report •

#2
August 30, 2010 at 22:58:16
(
ECHO Line 1
ECHO Line 2
ECHO Line 3
) >> FileName.txt

I have found the solution.But little problem

I want to add text like (abc)
I am able to print
(
ECHO (abc
ECHO )
) >> FileName.txt

but ")" when this comes the program gets terminated.

plz tell me how to enter such text "(xyz) " so that programs doesnot terinate


Report •

#3
August 30, 2010 at 23:34:05
type FileName.txt >> names.txt

This is the solotion.
This will copy all the text in filename.txt to end of names.txt


Report •

Related Solutions

#4
August 31, 2010 at 06:30:37
Nicely done amansarpal. We are happy to help you, but we won;t do it for you.

A little research is all you need.

Can I put a question here?


Report •


Ask Question