title: size of a byte file in vc++
body: <pre><code>FileStream^ fs = File::OpenRead("C:\\example.bin");
  array&lt;Byte&gt;^ b = gcnew array&lt;Byte&gt;(1000);
  fs-&gt;Read(b,0,1000);
  
  unsigned char *pb;
  pb=(byte*)malloc(1000);
  Marshal::Copy(b,0,IntPtr(pb),1000);
  
  res=Send(pb, b-&gt;Length);
  </code></pre>
  
  <p>I want to use the size of the file <strong>example.bin</strong> in bytes instead of the value 1000. How can I?</p>