Guest User

Untitled

a guest
Jul 16th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. let cat nom_fichier =
  2. let f = open_in nom_fichier in
  3. let rec cat_rec () =
  4. try
  5. print_string (input_line f); print_newline (); cat_rec ();
  6. with End_of_file -> close_in f
  7. in cat_rec ();;
Add Comment
Please, Sign In to add comment