title: How to read FoxPro Memory Variable Files (.MEM) with Delphi
body: <p>I'm trying to read a <a href="http://1drv.ms/1R5l9Fy" rel="nofollow">.MEM file</a> using Delphi. It's a FoxPro Memory Variable Files. I've tried to read using TFileStream and load into TStringList. But, it only returns the first word.</p>
  
  <pre><code>F := TFileStream.Create(sFile, fmOpenRead);
  L := TStringList.Create;
  try
    F.Position := 0;
    L.LoadFromStream(F);
    ShowMessage(L.Text);
  finally
    F.Free;
    L.Free;
  end;
  </code></pre>
  
  <p>The reason is because I want to migrate some useful .MEM values from an old program to my new program. Thanks for any help.</p>