Write binary data to file instead of print to screen.