The 8 read() statements read and ignore 8 bytes from the file. What are in those 8 bytes that you can ignore them?
Do you have a definition of what each byte in the enc file contains?