1
0
Fork 0
advent-of-code-2022/ocaml/lib/file_utils.ml

7 lines
139 B
OCaml
Raw Normal View History

2023-01-11 12:35:10 +00:00
let read_file filename =
let ch = open_in filename in
let s = really_input_string ch (in_channel_length ch) in
close_in ch;
s
;;