How to write two different trees into one file?

Also see How to Quickly Inspect the Content of a File?