DOC: add cookbook example for reading in simple binary file formats

closes #6305