From 4e1aa9b6b427afb90db678f5b16171b1988e9365 Mon Sep 17 00:00:00 2001 From: DJ O'Leary Date: Tue, 2 Dec 2025 00:09:07 +0100 Subject: refactor(file): rename File_reader module to File --- 2025/ocaml/lib/infrastructure/file.ml | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 2025/ocaml/lib/infrastructure/file.ml (limited to '2025/ocaml/lib/infrastructure/file.ml') diff --git a/2025/ocaml/lib/infrastructure/file.ml b/2025/ocaml/lib/infrastructure/file.ml new file mode 100644 index 0000000..3b49c01 --- /dev/null +++ b/2025/ocaml/lib/infrastructure/file.ml @@ -0,0 +1,4 @@ +let read filename = + let chan = In_channel.open_text filename in + let content = In_channel.input_all chan in + In_channel.close chan ; content -- cgit v1.2.3