let with_file0 fn ~f = In_channel.with_file ~binary:true fn ~f:(fun ic -> read0 ic >>= fun (header, alignments) -> f header alignments )