I'm attempting to write a list of integers to a file of bytes with the following code:
let out_channel = open_out_bin "G:\\JVM\\OcamlTest2.class";;
let writeBytes out_channel finalBytes =
match finalBytes with
| [] -> close_out out_channel
| hd::tl -> output_byte out_channel hd; writeBytes out_channel tl;;
And I get the following error:
Error: Unbound value writeBytes
How can I fix this?