Created
June 18, 2018 06:29
-
-
Save kunigami/1ae044fa9ba7a0ce997f7d8c049f8e90 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
external readFile : | |
name:string -> | |
([ `utf8 | |
| `useAscii [@bs.as "ascii"] | |
] [@bs.string]) -> | |
(string -> string -> unit) -> | |
unit = "" | |
[@@bs.module "fs"] | |
let callback error data = Js.log(data) | |
let _ = readFile ~name:"data.json" `utf8 callback |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment