add write binary file