Write out (almost) complete binary file.