out.open(out_name, std::ios_base::binary );