Probably not if you use put_byte/1,2. You probably also want write for put_byte
The advised (and standard) method is
open(File, write, Out, [type(binary)]).
Probably not if you use put_byte/1,2. You probably also want write for put_byte
The advised (and standard) method is
open(File, write, Out, [type(binary)]).