Get file size? : size « File Directory « Ruby






Get file size?


File.size?( "myFile.txt" ) # => 594

File.size( "myFile.txt" ) # => 594

 








Related examples in the same category

1.find out if a file has a length of zero (0) with zero?:
2.Get its size in bytes with size? or size:
3.Getting the Size of a File