add fopen write mode binary