Has anyone tried merging multiple HTML Files to single HTML File ?

am in confusion whether we need to treat HTML files as an ordinary text and and to append text or is there anyother way..