I found the File API said that:
Find if a file is empty (i.e zero length) with the zero? method:
File.zero?("temp.txt")
=> false
# So why don't we just use File.empty? which is more meaningful?
I found the File API said that:
Find if a file is empty (i.e zero length) with the zero? method:
File.zero?("temp.txt")
=> false
# So why don't we just use File.empty? which is more meaningful?