Example 10.1: Read a file byte by byte