directly use File.length() instead of utility class