Monday, April 23, 2012

See if file is empty

How to a check if a file is empty in Java 7?

I tried it using the available() method from ObjectInputStream, but it returns always zero even if the the file contains data.





No comments:

Post a Comment