there may be more sophisticated solutions but how about writing file1.txt and file2.txt and then using

shell "copy file1.txt+file2.txt file3.txt"

should work

Roger