3 ms·
I had the same reaction when I found out word docx files are just zip files with a bunch of xml in there.
by sumtechguy 6y ago
I had the same reaction when I found out word docx files are just zip files with a bunch of xml in there.
- doodpants 6y agoDocx was Microsoft's answer to the Open Document Format used by OpenOffice, which is also just zipped XML files.
- lucb1e 6y agoYou might be surprised to learn just how many files are zip files. Java software (jar, war): zip files Android packages (apk): zip files OpenDocument Format (odt, ods, odp): zip files Quake 3 / OpenArena / Urban Terror / etc. (pk3): zip files Firefox/Thunderbird/Chromium extensions (xpi, crx): zip files EPUB: :D
- ok123456 6y agonumpy's npz is also zip.
- sumtechguy 6y agoJust look for that PK in the first 2 bytes of the file and it is a good chance it is a zip file. That jar/war one has saved me a few times in figuring out what exactly the compiler did to a program.
- Turing_Machine 6y agoYeah, it is surprising at first, but after you think about it, maybe not so much. If you need to cram a bunch of files into one package, zip is the obvious candidate. There are well-tested libraries and apps for dealing with zips for essentially every language and operating system. As the saying goes, "don't mess with success".