ZIP Files Are Read Backwards

Every format in this series so far reads front to back. PNG starts with a signature and you walk chunks in order. A text file is bytes from the beginning. Markdown parsers scan line by line, top to bottom. ZIP reads backwards. The index is at the end of the file, and a reader is expected to seek to the end first and work its way back. That one decision explains almost everything strange about ZIP,…