I’m serializing a large number of objects to binary files, however I want to keep everything neatly organized and don’t really want hundreds of files in a folder. Is there anyway to group them into zip files, and then access the individual files within that zip?
For example, say I created 100 binary files and zipped them. Would I be able to access a single file in that zip and deserialize it without unzipping everything?
Yes, zip has an archive directory that allows jumping to a specific file. If you intend to spend much more time reading from the archive than changing it, this should be effective. If you have to be able to commit changes back to the non-volatile storage, then some other format besides zip would be better.
Another approach you could try would be storing blobs (binary large objects) in a lightweight database.