title: Reading binary file from delphi
body: <p>I want to transition some old files first to human readable type, so in Delphi code is following:</p>
  
  <pre><code>OpenFileWriteRA(MyF, dd+'invoice.mfs', SizeOf(TFSerialDocEx)) then
  </code></pre>
  
  <p>and then calling</p>
  
  <pre><code>ReadFile(MyF, vSS1, SizeOf(TFSerialDocEx), nr1, nil);
  </code></pre>
  
  <p>So i am looking for a way to conver this files using with small programm i want to make it with C#, as i am more fammiliar with C# than with Delphi. .MFS file is written in binary, so what would i need to convert this to text/string, i tryed with simple binary convert but it was not ok, as it seems SizeOf Object at paramters is big thing here or?</p>