Output the final file.