title: Binary structure for a directory with files
body: <p>I'm trying to solve the following problem. I want to create a set of directories with files in them , but <em>in memory</em> using C# , using strings / byte arrays, and I am trying to figure out what's the format and byte sequence for all of this. i mean something like</p>
  
  <p><code>&lt;magic sequence for top directory header&gt; &lt;magic sequence for file header&gt; &lt;/ end file&gt; ... file 2 file 3 ... etc ... &lt;/magic sequence for the directory header&gt; , etc.</code></p>
  
  <p>I'm talking about windows formats here.</p>
  
  <p>Could you point me to a location where i can read about this or even better, give me some existing examples? </p>
  
  <p>Thanks !
  Angel </p>