I have a text file for example. What is the best way to check in Ruby that a file is empty?
File.size('test.rb') == 0
looks ugly.
I have a text file for example. What is the best way to check in Ruby that a file is empty?
File.size('test.rb') == 0
looks ugly.