File bin rewrite