title: How can calculate the size of any file in C++ or Visual C++/.NET or C#?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1380839">How do you get the file size in C#?</a>  </p>
  </blockquote>
  
  
  
  <p>How can I calculate the size of any file in C++ or <a href="http://en.wikipedia.org/wiki/Visual_C++#32-bit_versions" rel="nofollow noreferrer">Visual C++</a>/<a href="http://en.wikipedia.org/wiki/.NET_Framework" rel="nofollow noreferrer">.NET</a> or <a href="http://en.wikipedia.org/wiki/C_Sharp_%28programming_language%29" rel="nofollow noreferrer">C#</a>?</p>
  
  <p>I mean a .exe, .txt, .doc, etc. file.</p>