Advertisement
Guest User

Untitled

a guest
Aug 3rd, 2014
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
OCaml 0.26 KB | None | 0 0
  1. let map_file f file_in file_out =
  2.   BatFile.lines_of file_in
  3.   |> BatEnum.map f
  4.   |> BatFile.write_lines (file_out ^ ".tmp");
  5.   (* (try Sys.remove file_out with _ -> ()); *)
  6.   Sys.remove file_out
  7.  
  8. ------------
  9. Error:
  10. Sys.error("page.html: Permission denied")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement