I/O problem

Probably not if you use put_byte/1,2. You probably also want write for put_byte :slight_smile: The advised (and standard) method is

open(File, write, Out, [type(binary)]).
1 Like