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
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
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs