Get its size in bytes with size? or size: : size « File Directory « Ruby






Get its size in bytes with size? or 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.Getting the Size of a File
3.Get file size?