title: How to get the size of a file in MB (Megabytes)?
body: <p>I have a zip file on a server.</p>
  <p>How can I check if the file size is larger than 27 MB?</p>
  <pre><code>File file = new File(&quot;U:\intranet_root\intranet\R1112B2.zip&quot;);
  if (file &gt; 27) {
     //do something
  }
  </code></pre>