Combine txt files

General questions about using TextPad

Moderators: AmigoJack, helios, bbadmin, Bob Hansen, MudGuard

Post Reply
slmehl
Posts: 4
Joined: Sun Nov 09, 2008 5:22 am

Combine txt files

Post by slmehl »

Can I use TextPad to combine txt files?

Thanks for any help.

L Mehl
Ryck
Posts: 50
Joined: Thu Mar 17, 2005 4:20 am

Re: Combine txt files

Post by Ryck »

slmehl wrote:Can I use TextPad to combine txt files?

Thanks for any help.

L Mehl
Sure.

Procedure Start.
..Open the first one.
..While you have files to combine.
....Open it.
....Copy all the text.
....Paste to the end of the first one.
....Close that file.
..Repeat.
..Save your now combined first file.
Procedure End.


A more efficient way is not use Textpad if you know any scripting languages. Write a short program to repeatedly open one file for reading and another file - the same one - for appending and copy all the lines from one file to another until all the files are combined to one file.
ak47wong
Posts: 703
Joined: Tue Aug 12, 2003 9:37 am
Location: Sydney, Australia

Re: Combine txt files

Post by ak47wong »

slmehl wrote:Can I use TextPad to combine txt files?
Click Edit->Insert->Files or press Ctrl+Shift+V.

Or you can do it without TextPad at the command prompt:

C:\> copy source1+source2+... destination

Andrew
Ryck
Posts: 50
Joined: Thu Mar 17, 2005 4:20 am

Re: Combine txt files

Post by Ryck »

ak47wong wrote:
slmehl wrote:Can I use TextPad to combine txt files?
Click Edit->Insert->Files or press Ctrl+Shift+V.

Or you can do it without TextPad at the command prompt:

C:\> copy source1+source2+... destination

Andrew
Look at that! That's even better! :)

Learn something every day.
Post Reply