See if file is empty
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/7190618/most-efficient-way-to-check-if-a-file-is-empty-in-java-on-windows">Most efficient way to check if a file is empty in Java on Windows</a>  </p>
</blockquote>



<p>How to a check if a file is empty in Java 7?<br>
I tried it using the available() method from ObjectInputStream, but it returns always zero even if the the file contains data.  </p>
