summaryrefslogtreecommitdiff
path: root/2024/ocaml/lib/file/read_input.ml
diff options
context:
space:
mode:
authorDJ O'Leary <dijitol@proton.me>2026-06-27 04:28:48 +0200
committerDJ O'Leary <dijitol@proton.me>2026-06-27 04:28:48 +0200
commitbc8b9edc0860f4804dfd0ea868ee7beaa564e62a (patch)
treee1123d11627b4829586da3b097015b1dbb3d0285 /2024/ocaml/lib/file/read_input.ml
parent976048a85403fbb0751c34fa42703a3c47f6e918 (diff)
test: fix ocaml tests 2024 {WIP}HEADmain
Diffstat (limited to '2024/ocaml/lib/file/read_input.ml')
-rw-r--r--2024/ocaml/lib/file/read_input.ml11
1 files changed, 0 insertions, 11 deletions
diff --git a/2024/ocaml/lib/file/read_input.ml b/2024/ocaml/lib/file/read_input.ml
deleted file mode 100644
index 0f7470b..0000000
--- a/2024/ocaml/lib/file/read_input.ml
+++ /dev/null
@@ -1,11 +0,0 @@
-let rec lines_from_channel ic =
- try
- let line = input_line ic in
- line :: lines_from_channel ic
- with End_of_file -> []
-
-let lines_from_file filename =
- let channel = open_in filename in
- let lines = lines_from_channel channel in
- close_in channel;
- lines