22020RE: [Clip] Merging two files
- Aug 25, 2011John,
Your original question was quite clear in what you wanted.
The process is quite simple and short:
Set the delimiter to ^P
Input each file into separate arrays
Append each array element (in sequence), and output to the new file.
BTW, the meat of this was all detailed in the clips I sent you in Feb.
;Execute the next line for all element of the arrays i = 1, 2, ... max
^!AppendtoFile ^%newFile% ^%File1^%i%%^%File2^%i%%^%nl%
Obviously, you have to define the file name variables and check for unequal
# of array elements and other conditions.
At 08/25/2011 13:53, you wrote:
>1. some text but there might be more
>2. some more text. and there might be more
>1. some text but there might be more 80
>2. some more text. and there might be more 90
>Appending places file2 contents at the bottom of the file1 - not what is
>This needs to run as an automated clip, with no user interaction. The
>files are in place, and their names are known to
>the system. Just looking for the most efficient way to do it.
>From: firstname.lastname@example.org [mailto:email@example.com] On
>Behalf Of Don
>Sent: Thursday, August 25, 2011 13:05
>Subject: Re: [Clip] Merging two files
>Can you make up a quick example?
>There is of course an append command.
- << Previous post in topic Next post in topic >>