method

size

Importance_1
Ruby latest stable (v2_5_5) - 0 notes - Class: File
size() public

Returns the size of file in bytes.

File.new("testfile").size   #=> 66
Show source
Register or log in to add new notes.