Merge file contents