How can I store a binary file in my program, and output it to a file later?