I can only see two approaches. One would be to load both files as XML objects and append body children to maybe a new "html" xml object before you write this back to a file. Or you could go and play with text strings.
Can you please suggest an example? using text string?
Here is an example using text strings. It merges two files but it may or may not do exactly what you have in mind.
file_1 = File("a.html"); file_1.open("r"); html_1 = file_1.read(); file_1.close(); file_2 = File("b.html"); file_2.open("r"); html_2 = file_2.read(); file_2.close(); merged_html = html_1+html_2; alert (merged_html);
Thanks for your reply