illustrates reading and writing binary data