diff options
| author | DJ O'Leary <dijitol@proton.me> | 2025-12-02 00:09:07 +0100 |
|---|---|---|
| committer | DJ O'Leary <dijitol@proton.me> | 2025-12-02 00:09:07 +0100 |
| commit | 4e1aa9b6b427afb90db678f5b16171b1988e9365 (patch) | |
| tree | 3c714a0e9f37d61a0b47ef5a1c10b32d0f5359ef /2025/ocaml/lib/infrastructure/file.ml | |
| parent | ca7631ff2fdc6d783f1ae8043de95dcd1b6b7d08 (diff) | |
refactor(file): rename File_reader module to File
Diffstat (limited to '2025/ocaml/lib/infrastructure/file.ml')
| -rw-r--r-- | 2025/ocaml/lib/infrastructure/file.ml | 4 |
1 files changed, 4 insertions, 0 deletions
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 |
