title: Delphi: Copy FileStream to MemoryStream
body: <p>I want to copy a part of a FileStream to a MemoryStream.</p>
  
  <pre><code>FileStream.Write(Pointer(MemoryStream)^, MemoryStream.Size);
  FileStream.Read(Pointer(MemoryStream)^, count);
  </code></pre>
  
  <p>Is that right? It isn't working for me. </p>