title: What are ways to compress directory into single file
body: <p>Don't know how to ask it so I will explain situation. </p>
  
  <p>I need to store a few compressed files. The original idea was to create a folder and store as many compressed files as were needed and also create a file that holds data about every compressed file.</p>
  
  <p>However, I was not allowed to create many files and must only have one. I decided to create a compressed file which has a header about further data and after header keep compressed data. But this option has disadvantages, e.g. editing such file after it is created takes long time because it must be fully rewritten even if I want to add one more little file.</p>
  
  <p>So, as I imagine, I need to create folder with some specific attributes and create as many files inside. Is this even possible?</p>
  
  <p>I'm creating an app for Windows, so I can use any stuff that works on Windows, and I'm coding with C++.</p>
  
  <p><strong>NOTE:</strong> A single file is needed because, for example, it will be sent through e-mail and attaching many files is not an ideal solution.</p>
  
  <p><strong>NOTE:</strong>  I don't need an algorithm for compression, I need some way to efficiently store everything in single file.</p>