Hyperlatex allows the development of documents that are to be distributed either as printed
matter or as HTML. It is not a general-purpose translator of LaTeX files into HTML, but allows
writers to write for both media simultaneously.
This piece of code is a sample of how I solve a problem to merge text (or any file, for that matter) files together to one big file.
I hope you can use it, or learn from it.