let read_file x = with_input_file ~bin:true x begin fun ic -> let len = in_channel_length ic in let buf = String.create len in let () = really_input ic buf 0 len in buf end